@font-face {
  font-family: Nimbus;
  src: url('/assets/nimbus-regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Nimbus;
  src: url('/assets/nimbus-bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #e9f1f0;
  --surface: #f6fafa;
  --ink: #152e34;
  --muted: #435d63;
  --line: #b5c9cb;
  --accent: #d6f584;
  --accent-hover: #e3ffa1;
  --hero-start: #173c46;
  --hero-text: #eff8f5;
  --hero-muted: #d4e8e8;
  --panel: #d4e4e7;
  --order: #deedc8;
  --vacancy: #dce7f0;
  --focus: #006c76;
  --radius: 15px;
  --shell: 1216px;
  --gutter: clamp(16px, 3.4vw, 45px);
  --section-space: clamp(42px, 6vw, 83px);
  font-family: Nimbus, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--canvas);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.05; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
button, select, a { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button, select, dialog { margin: 0; }
button { border: 0; }
img { display: block; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
main:focus-visible, .detail h1:focus-visible, .dialog-head h2:focus-visible { outline: none; }
.hero :focus-visible, .plan-banner :focus-visible { outline-color: var(--hero-text); }

.skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: fixed; z-index: 10; top: 10px; left: 10px; padding: 12px; background: var(--surface); }
.shell { width: min(calc(100% - 2 * var(--gutter)), var(--shell)); margin-inline: auto; }
.icon { width: 19px; height: 19px; flex: 0 0 auto; vertical-align: middle; }
.header-inner { display: grid; grid-template-columns: 1fr; gap: 6px; padding-block: 12px 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; min-height: 44px; font-weight: 700; font-size: 21px; letter-spacing: -.035em; }
.brand img { width: 36px; height: 36px; }
.main-nav { display: flex; align-items: center; gap: clamp(12px, 4vw, 22px); }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); position: relative; white-space: nowrap; }
.main-nav a[aria-current], .main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current] { font-weight: 700; }
.main-nav a[aria-current]::after { content: ''; position: absolute; inset: auto 0 5px; height: 2px; background: var(--focus); }
.header-action { display: none; }
.site-footer { border-top: 1px solid var(--line); margin-top: var(--section-space); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 76px; }
.footer-bot { display: inline-flex; min-height: 44px; gap: 8px; align-items: center; font-size: 14px; }
.footer-bot:hover, .back-link:hover { text-decoration: underline; text-underline-offset: .2em; }

.button {
  display: inline-flex; align-items: center; justify-content: center; width: fit-content;
  min-height: 46px; padding: 10px 16px;
  border-radius: 8px; font-weight: 700; font-size: 15px; line-height: 1.2; text-align: center;
  transition: background-color .16s ease;
}
.primary { background: var(--accent); color: var(--ink); }
.primary:hover { background: var(--accent-hover); }
.secondary { background: var(--panel); }
.secondary:hover { background: var(--vacancy); }
.text { background: transparent; color: var(--muted); }
.text:hover { background: var(--panel); }
.hero-secondary { color: var(--hero-text); background: #ffffff1a; }
.hero-secondary:hover { background: #25505b; }

.hero {
  isolation: isolate; display: grid; position: relative; overflow: hidden;
  min-width: 0; border-radius: 20px; color: var(--hero-text);
  background: var(--hero-start);
}
.hero-content { position: relative; z-index: 1; padding: clamp(24px, 5vw, 62px); padding-bottom: 15px; text-align: center; }
.hero h1 { font-size: clamp(38px, 8.5vw, 104px); letter-spacing: -.065em; line-height: .92; }
.hero-break { display: none; }
.hero p { color: var(--hero-muted); max-width: 34ch; margin: 21px auto 24px; font-size: clamp(16px, 1.65vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.hero-visual { position: relative; isolation: isolate; overflow: hidden; height: clamp(185px, 48vw, 320px); }
.envelope { position: absolute; top: 22%; left: 19%; width: 62%; height: 61%; transform: rotate(-12deg) skewX(7deg); }
.envelope-back {
  position: absolute; inset: -20% 0 0; border-radius: 15% 15% 11px 11px;
  background: linear-gradient(145deg, #8eafb9, #476e81 58%, #284e60);
  clip-path: polygon(0 30%, 47% 0, 54% 0, 100% 30%, 100% 100%, 0 100%);
}
.envelope-paper {
  position: absolute; left: 12%; top: -15%; width: 76%; height: 95%; padding: 13% 12%;
  border-radius: 9px; transform: rotate(6deg); border: 1px solid #e6f4f3;
  background: linear-gradient(155deg, #e1eff2, #a4c4cc 60%, #668b9e);
  box-shadow: 0 9px 18px #0005;
}
.envelope-paper i { display: block; width: 91%; height: 2px; margin-bottom: 10%; background: #547b8a88; }
.envelope-paper i:nth-child(2) { width: 72%; }
.envelope-paper i:nth-child(3) { width: 45%; }
.envelope-face { position: absolute; inset: 14% 0 0; border-radius: 9px 9px 12px 12px; background: #779daa; clip-path: polygon(0 0, 50% 43%, 100% 0, 100% 100%, 0 100%); }
.envelope-fold { position: absolute; inset: 13% 0 0; border-radius: 9px 9px 12px 12px; }
.envelope-fold.left { clip-path: polygon(0 0, 55% 59%, 0 100%); background: linear-gradient(120deg, #d0e5e9, #7a9ead 45%, #52758a); }
.envelope-fold.right { clip-path: polygon(100% 0, 100% 100%, 45% 57%); background: linear-gradient(240deg, #bfd8df, #7097a9 46%, #34596d); }
.envelope-fold.bottom {
  clip-path: polygon(0 100%, 47% 43%, 53% 43%, 100% 100%);
  background: linear-gradient(155deg, #e2edf1, #97b6c2 48%, #577e92 91%);
  border: 1px solid #c3dbe4;
}

.section { margin-top: var(--section-space); scroll-margin-top: 18px; }
.section-head { display: flex; flex-wrap: wrap; gap: 13px; align-items: end; justify-content: space-between; margin-bottom: 19px; }
.section h2, .plan-banner h2 { font-size: clamp(27px, 4.2vw, 54px); letter-spacing: -.05em; }
.section-head p, .page-intro p { margin-top: 8px; color: var(--muted); }
.cards { display: grid; gap: 12px; }
.job-card { min-width: 0; background: var(--surface); border-radius: var(--radius); }
.job-card:hover h3 { text-decoration: underline; text-underline-offset: .13em; }
.job-link { min-height: 100%; display: flex; flex-direction: column; padding: 20px 16px; border-radius: inherit; text-align: center; }
.card-meta, .detail-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); }
.type { display: inline-grid; place-items: center; min-height: 24px; border-radius: 5px; padding: 3px 8px; text-align: center; color: var(--ink); font-weight: 700; font-size: 12px; white-space: nowrap; }
.type.order { background: var(--order); }
.type.vacancy { background: var(--vacancy); }
.card-date { white-space: nowrap; }
.job-card h3 { font-size: 23px; letter-spacing: -.032em; margin-block: 14px 8px; text-wrap: balance; }
.card-summary { color: var(--muted); font-size: 15px; margin: 0 auto 16px; max-width: 38ch; }
.card-bottom { margin-top: auto; display: grid; gap: 5px; justify-items: center; }
.card-pay { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 2px 7px; min-width: 0; }
.card-pay strong { font-size: 20px; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.card-pay small { color: var(--muted); font-size: 13px; }
.card-access { margin-top: 10px; color: var(--ink); font-size: 15px; font-weight: 700; }
.card-access.is-open { color: #235d43; }
.card-access + h3 { margin-top: 5px; }

.plan-banner { display: grid; gap: 22px; margin-top: var(--section-space); padding: clamp(21px, 4.2vw, 52px); border-radius: 20px; background: var(--hero-start); color: var(--hero-text); text-align: center; }
.plan-banner h2 { font-size: clamp(26px, 3.6vw, 47px); }
.plan-price { display: flex; flex-wrap: wrap; gap: 5px 12px; align-items: baseline; justify-content: center; margin-block: 12px; }
.plan-price strong { font-size: clamp(39px, 7.7vw, 79px); line-height: .95; letter-spacing: -.06em; }
.plan-price span { font-size: 17px; }
.benefits { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.plan-note { margin-block: 16px 14px; color: var(--hero-muted); }

.page-intro { padding-top: clamp(22px, 5vw, 62px); margin-bottom: 25px; }
.page-intro h1 { font-size: clamp(44px, 8vw, 98px); letter-spacing: -.07em; }
.page-intro p { max-width: 56ch; margin-top: 12px; font-size: 17px; }
.page-intro > .button { margin-top: 18px; }
.filters { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; padding-block: 8px; }
.segments { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.segments button { padding: 8px clamp(10px, 2vw, 21px); min-height: 44px; border-radius: 7px; background: transparent; font-weight: 700; }
.segments button:hover { background: var(--panel); }
.segments button[aria-pressed="true"] { background: var(--hero-start); color: var(--hero-text); }
.category-label { display: grid; gap: 5px; color: var(--muted); font-size: 13px; width: min(100%, 280px); text-align: center; }
.category-label select { width: 100%; min-height: 44px; appearance: none; padding: 8px 12px; border: 0; border-radius: 8px; background: var(--panel); color: var(--ink); font-size: 16px; text-align: center; text-align-last: center; }
.category-label select:focus { outline: none; }
.category-label select:focus-visible { background: var(--order); }
.catalog-results { margin-top: 21px; }
.catalog-results h2 { margin-bottom: 14px; color: var(--muted); font-size: 15px; }
.empty { grid-column: 1 / -1; padding: 26px; background: var(--surface); border-radius: var(--radius); text-align: center; }
.empty h3 { font-size: 24px; }
.empty p { margin-block: 9px 15px; color: var(--muted); }

.detail-wrap { max-width: 875px; margin-inline: auto; padding-top: clamp(12px, 3vw, 35px); }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; font-size: 15px; }
.detail { margin-top: 10px; border-radius: 19px; overflow: hidden; background: var(--surface); text-align: center; }
.detail-head, .detail-body { padding: clamp(18px, 4.2vw, 45px); }
.detail-head { background: var(--panel); }
.detail-head h1 { margin-block: 14px 9px; font-size: clamp(33px, 6vw, 64px); letter-spacing: -.055em; overflow-wrap: anywhere; }
.detail-demo, .source-note { color: var(--muted); font-size: 14px; }
.detail-body h2, .panel h2 { font-size: clamp(23px, 3vw, 32px); letter-spacing: -.035em; }
.detail-body h2 { margin-block: 23px 8px; }
.detail-body p { max-width: 55ch; margin: 8px auto 12px; }
.detail-body .button { margin-top: 10px; }
.detail-pay { display: grid; gap: 4px; padding-bottom: 10px; }
.detail-pay span { color: var(--muted); font-size: 14px; }
.detail-pay strong { font-size: clamp(26px, 4vw, 41px); letter-spacing: -.045em; line-height: 1.08; }
.access-box { margin-top: 24px; padding: clamp(17px, 3vw, 24px); border-radius: var(--radius); background: var(--canvas); }
.access-box h2 { margin-top: 0; }

.account-grid { display: grid; gap: 14px; }
.panel { background: var(--surface); border-radius: var(--radius); padding: clamp(20px, 3.3vw, 34px); text-align: center; }
.panel-heading { display: grid; gap: 10px; justify-items: center; }
.panel > p { color: var(--muted); max-width: 42ch; margin: 13px auto; }
.account-status { display: inline-grid; place-items: center; min-height: 26px; padding: 3px 10px; border-radius: 5px; background: var(--panel); font-size: 13px; white-space: nowrap; font-weight: 700; }
.account-status.is-active { background: var(--order); }
.account-date { display: grid; gap: 4px; }
.account-date strong { color: var(--ink); font-size: 23px; }
.account-grid .button { margin-top: 4px; }
.account-plan { margin-top: 23px; }
.switch { display: grid; place-items: center; background: transparent; padding: 0; width: 54px; min-height: 44px; }
.switch span { display: flex; align-items: center; width: 52px; height: 28px; padding: 4px; border-radius: 20px; background: var(--panel); }
.switch span::after { content: ''; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform .16s ease; }
.switch[aria-checked="true"] span { background: var(--accent); }
.switch[aria-checked="true"] span::after { background: var(--ink); transform: translateX(23px); }
.panel .notification-state { font-weight: 700; color: var(--ink); }

dialog { border: 0; text-align: center; border-radius: 17px; margin: auto; padding: clamp(18px, 4vw, 32px); width: min(calc(100% - 32px), 490px); background: var(--surface); color: var(--ink); max-height: calc(100% - 24px); }
dialog::backdrop { background: #132e37a6; }
.dialog-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin-bottom: 11px; }
.dialog-head h2 { grid-column: 2; font-size: clamp(24px, 5vw, 35px); letter-spacing: -.04em; text-wrap: balance; }
.icon-button { display: grid; width: 44px; height: 44px; place-items: center; background: transparent; }
.icon-button:hover, .icon-button:focus-visible { color: var(--focus); outline: none; }
.icon-button:focus-visible .icon { stroke-width: 3; }
.dialog-actions { margin-top: 19px; }
.scenario-actions { display: grid; gap: 9px; margin-block: 17px 9px; }
.scenario-actions .button { width: 100%; }
.notice { position: fixed; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%); max-width: calc(100% - 28px); width: max-content; opacity: 0; pointer-events: none; background: var(--hero-start); color: var(--hero-text); border-radius: 8px; text-align: center; padding: 12px 16px; }
.notice.visible { opacity: 1; }

@media (max-width: 340px) {
  .segments button { padding-inline: 7px; }
}
@media (min-width: 500px) {
  .plan-banner { grid-template-columns: .9fr 1.1fr; align-items: center; }
}
@media (min-width: 650px) {
  .header-inner { grid-template-columns: auto 1fr; gap: 22px; min-height: 78px; align-items: center; padding: 8px 0; }
  .main-nav { justify-content: end; }
  .hero-content { padding-bottom: clamp(24px, 5vw, 62px); }
  .hero { grid-template-columns: 1.15fr 1fr; align-items: stretch; }
  .hero h1 { font-size: clamp(47px, 7vw, 96px); }
  .hero-break { display: initial; }
  .hero-visual { height: auto; margin-left: -18%; }
  .envelope { height: 47%; top: 29%; }
  .cards, .account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job-link { padding: 19px; }
  .category-label { width: auto; }
  .category-label select { width: 195px; }
}
@media (min-width: 920px) {
  .header-inner { grid-template-columns: 1fr auto 1fr; }
  .main-nav { justify-content: center; gap: 28px; }
  .header-action { display: block; justify-self: end; }
  .hero { grid-template-columns: 1.25fr 1fr; min-height: 475px; }
  .hero h1 { font-size: clamp(53px, 5.35vw, 78px); }
  .hero-visual { margin-left: -9%; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .job-link { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .button, .switch span::after { transition: none; }
}

.full-text { white-space: pre-wrap; overflow-wrap: anywhere; text-align: start; }
.listing-contacts { list-style: none; padding: 0; margin: 12px 0; }
.listing-contacts a { text-decoration: underline; overflow-wrap: anywhere; }
.login-form { display: grid; gap: 8px; justify-items: center; margin: 16px auto; }
.login-form input { width: min(100%, 170px); padding: 10px; font: inherit; text-align: center; color: var(--ink); background: var(--panel); border: 0; border-radius: 8px; }
.login-status { margin-top: 12px; }
