:root {
    --ink: #10233f;
    --ink-soft: #334967;
    --muted: #66768c;
    --line: #dce5ee;
    --line-soft: #e9eff5;
    --brand: #07885f;
    --brand-dark: #056c4c;
    --brand-light: #e7f7f1;
    --navy: #082b4c;
    --canvas: #f5f8fb;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 35, 63, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

button, input, select { font: inherit; }

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    position: relative;
    z-index: 20;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(220, 229, 238, .85);
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-link, .header-actions, .footer-brand {
    display: flex;
    align-items: center;
}

.brand-link { min-width: 0; }

.duo-logo-crop {
    display: block;
    width: 172px;
    height: 44px;
    flex: 0 0 auto;
    background: #fff url('../images/duo/duo-logo.png') 51% 46% / 130.5% auto no-repeat;
}

.brand-divider {
    width: 1px;
    height: 28px;
    margin: 0 14px;
    background: var(--line);
}

.brand-area {
    color: var(--ink-soft);
    font-size: 16px;
    font-weight: 800;
}

.header-actions { gap: 10px; }

.nav-link {
    padding: 11px 14px;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
}

.nav-link:hover { background: #f1f5f8; }

.admin-button, .search-actions button, .job-button, .secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font-weight: 800;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.admin-button {
    min-height: 44px;
    padding: 0 17px;
    background: var(--navy);
    color: #fff;
    font-size: 14px;
}

.admin-button:hover, .search-actions button:hover, .job-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(8, 43, 76, .16);
}

.hero {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 72% 35%, rgba(22, 178, 126, .24), transparent 28%),
        linear-gradient(122deg, #062845 0%, #08375c 54%, #075a55 100%);
}

.hero::after {
    position: absolute;
    right: -160px;
    bottom: -230px;
    width: 520px;
    height: 520px;
    content: "";
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
}

.hero-decoration {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-decoration-one {
    top: -165px;
    right: 10%;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(255, 255, 255, .13);
}

.hero-decoration-two {
    left: -90px;
    bottom: -170px;
    width: 360px;
    height: 360px;
    background: rgba(5, 136, 95, .15);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
    align-items: center;
    gap: 72px;
    min-height: 500px;
    padding-block: 64px 88px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7fe1be;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 26px;
    height: 2px;
    content: "";
    border-radius: 999px;
    background: currentColor;
}

.hero h1 {
    max-width: 700px;
    margin: 18px 0 18px;
    font-size: clamp(38px, 5.1vw, 64px);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.hero-copy > p {
    max-width: 650px;
    margin: 0;
    color: #d7e5ef;
    font-size: clamp(17px, 2vw, 20px);
}

.hero-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 38px;
    margin-top: 36px;
}

.hero-number {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    max-width: 235px;
}

.hero-number strong {
    color: #fff;
    font-size: 31px;
    line-height: 1;
}

.hero-number span {
    color: #bbd0de;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.25;
}

.hero-card {
    position: relative;
    width: 100%;
    max-width: 410px;
    justify-self: end;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 24px;
    background: rgba(255, 255, 255, .12);
    box-shadow: 0 26px 70px rgba(0, 17, 32, .2);
    backdrop-filter: blur(14px);
    transform: rotate(1.5deg);
}

.hero-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hero-card-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background: #09a974;
}

.hero-card-icon svg { width: 27px; height: 27px; }

.hero-card-status {
    padding: 7px 10px;
    border-radius: 999px;
    color: #aaf0d4;
    background: rgba(1, 34, 35, .32);
    font-size: 12px;
    font-weight: 800;
}

.hero-card-lines { margin: 27px 0 22px; }

.hero-card-lines span {
    display: block;
    height: 10px;
    margin-top: 11px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .2);
}

.hero-card-lines span:first-child { width: 78%; height: 15px; background: rgba(255, 255, 255, .76); }
.hero-card-lines span:nth-child(2) { width: 100%; }
.hero-card-lines span:nth-child(3) { width: 65%; }

.hero-card-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.hero-card-tags span {
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    color: #dbeaf2;
    font-size: 12px;
    font-weight: 700;
}

.hero-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 19px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    font-size: 14px;
    font-weight: 800;
}

.hero-card-action span { color: #74dfb9; font-size: 22px; }

.search-section {
    position: relative;
    z-index: 5;
    margin-top: -38px;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(230px, 1.55fr) repeat(3, minmax(150px, 1fr)) auto;
    align-items: end;
    gap: 12px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
}

.search-field label {
    display: block;
    margin: 0 0 7px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 800;
}

.search-field input, .search-field select {
    width: 100%;
    height: 48px;
    border: 1px solid #cad7e3;
    border-radius: 11px;
    outline: none;
    color: var(--ink);
    background: #fff;
}

.search-field input { padding: 0 13px 0 42px; }
.search-field select { padding: 0 35px 0 12px; }

.search-field input:focus, .search-field select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(7, 136, 95, .13);
}

.input-with-icon { position: relative; }

.input-with-icon svg {
    position: absolute;
    top: 50%;
    left: 13px;
    width: 20px;
    height: 20px;
    color: #71839a;
    transform: translateY(-50%);
}

.search-actions {
    display: flex;
    min-width: 125px;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.search-actions button {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 0;
    color: #fff;
    background: var(--brand);
    cursor: pointer;
}

.search-actions button:hover { background: var(--brand-dark); }

.search-actions a {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-decoration: underline;
}

.jobs-section { padding: 78px 0 38px; scroll-margin-top: 20px; }

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.eyebrow-dark { color: var(--brand); }

.section-heading h2, .steps-heading h2 {
    margin: 9px 0 0;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.1;
    letter-spacing: -.035em;
}

.section-heading > p {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.job-card {
    display: flex;
    min-height: 430px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--card);
    box-shadow: 0 9px 30px rgba(16, 35, 63, .045);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.job-card:hover {
    border-color: #b7d8ca;
    box-shadow: 0 18px 40px rgba(16, 35, 63, .09);
    transform: translateY(-3px);
}

.job-company {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 19px 21px;
    border-bottom: 1px solid var(--line-soft);
    background: #fbfcfd;
}

.company-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    color: #087153;
    background: var(--brand-light);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .04em;
}

.job-company div { min-width: 0; }

.job-company div span {
    display: block;
    color: #8795a7;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.job-company strong {
    display: block;
    overflow: hidden;
    margin-top: 1px;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px 21px 18px;
}

.job-department {
    align-self: flex-start;
    margin-bottom: 9px;
    padding: 5px 8px;
    border-radius: 7px;
    color: #087153;
    background: var(--brand-light);
    font-size: 11px;
    font-weight: 800;
}

.job-main h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.job-main h3 a:hover { color: var(--brand); }

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    margin-top: 15px;
}

.job-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #5e7188;
    font-size: 12px;
    font-weight: 700;
}

.job-meta svg { width: 15px; height: 15px; color: #13916b; }

.job-main > p {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.job-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 21px 19px;
    border-top: 1px solid var(--line-soft);
}

.job-details { display: flex; flex-direction: column; color: #77869a; font-size: 11px; font-weight: 700; }

.job-button {
    min-height: 41px;
    padding: 0 14px;
    gap: 8px;
    color: #fff;
    background: var(--navy);
    font-size: 13px;
}

.job-button span { color: #65d2aa; font-size: 18px; }

.empty-state {
    display: flex;
    min-height: 340px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 22px;
    border: 1px dashed #c8d6e2;
    border-radius: 20px;
    text-align: center;
    background: #fff;
}

.empty-icon {
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    border-radius: 18px;
    color: var(--brand);
    background: var(--brand-light);
}

.empty-icon svg { width: 34px; height: 34px; }
.empty-state h3 { margin: 19px 0 7px; font-size: 23px; }
.empty-state p { max-width: 520px; margin: 0; color: var(--muted); }

.secondary-button {
    min-height: 42px;
    margin-top: 19px;
    padding: 0 15px;
    color: var(--brand-dark);
    border: 1px solid #b8dfd0;
    background: #fff;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
}

.pagination-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
}

.pagination-button:not(.disabled):hover { border-color: #a8cfbf; color: var(--brand); }
.pagination-button.disabled { color: #a7b2bf; background: #f1f4f7; }
.pagination-status { color: var(--muted); font-size: 13px; font-weight: 700; }

.steps-section { padding: 40px 0 76px; }

.steps-panel {
    display: grid;
    grid-template-columns: minmax(250px, .7fr) minmax(0, 1.3fr);
    gap: 58px;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
}

.steps-heading > p { margin: 15px 0 0; color: var(--muted); }

.steps-list { display: grid; gap: 12px; }

.step {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    padding: 15px;
    border-radius: 14px;
    background: #f7fafb;
}

.step > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    color: #087153;
    background: var(--brand-light);
    font-weight: 900;
}

.step strong { display: block; margin-top: 1px; }
.step p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }

.site-footer {
    border-top: 1px solid var(--line);
    background: #fff;
}

.footer-inner {
    display: flex;
    min-height: 112px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-inner > div:first-child { display: flex; flex-direction: column; }
.footer-inner strong { font-size: 16px; }
.footer-inner div:first-child span { color: var(--muted); font-size: 12px; }
.footer-brand { gap: 8px; color: var(--muted); font-size: 11px; font-weight: 800; }
.footer-brand img { display: block; width: 125px; height: 44px; object-fit: contain; }

@media (max-width: 1050px) {
    .search-panel { grid-template-columns: 1.5fr repeat(2, 1fr); }
    .search-actions { align-self: end; }
    .jobs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .hero-content { grid-template-columns: 1fr; gap: 40px; padding-block: 66px 86px; }
    .hero-card { display: none; }
    .search-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .search-field-main { grid-column: 1 / -1; }
    .steps-panel { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 640px) {
    .container { width: min(100% - 28px, 1180px); }
    .header-inner { min-height: 72px; }
    .duo-logo-crop { width: 128px; height: 34px; }
    .brand-divider { height: 23px; margin: 0 9px; }
    .brand-area { font-size: 14px; }
    .nav-link { display: none; }
    .admin-button { min-height: 40px; padding: 0 12px; font-size: 12px; }
    .hero { min-height: auto; }
    .hero-content { min-height: 440px; padding-block: 58px 80px; }
    .hero h1 { font-size: clamp(38px, 12vw, 52px); }
    .hero-copy > p { font-size: 17px; }
    .hero-numbers { gap: 22px; }
    .search-section { margin-top: -28px; }
    .search-panel { grid-template-columns: 1fr; padding: 17px; }
    .search-field-main { grid-column: auto; }
    .search-actions { width: 100%; }
    .jobs-section { padding-top: 62px; }
    .section-heading { align-items: start; flex-direction: column; gap: 9px; }
    .jobs-grid { grid-template-columns: 1fr; }
    .job-card { min-height: 0; }
    .pagination { gap: 8px; }
    .pagination-button { min-height: 40px; padding: 0 10px; font-size: 12px; }
    .pagination-status { font-size: 11px; }
    .steps-panel { padding: 27px 20px; }
    .footer-inner { min-height: 135px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 12px; }
}

@media (max-width: 420px) {
    .duo-logo-crop { width: 112px; height: 30px; }
    .brand-divider { display: none; }
    .brand-area { display: none; }
    .admin-button { padding-inline: 10px; }
    .hero-number { max-width: 170px; }
    .job-footer { align-items: flex-start; flex-direction: column; }
    .job-button { width: 100%; }
    .pagination-status { display: none; }
}
