/* ==========================================================================
   Eptive — design system
   1. Tokens  2. Base  3. Layout  4. Components  5. Sections  6. Pages  7. Motion
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */
:root {
  --ink: #10231f;
  --ink-2: #1c3a33;
  --ink-soft: #4d615c;
  --paper: #f7f3ea;
  --paper-2: #efe9db;
  --card: #fffdf8;
  --line: #ded6c4;
  --accent: #e0603a;
  --accent-dark: #c44d29;
  --mint: #bfe3cf;
  --gold: #f1c46b;
  --ok: #1f7a55;
  --err: #b3351c;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 35, 31, .06), 0 12px 32px -12px rgba(16, 35, 31, .18);
  --shadow-lg: 0 30px 70px -30px rgba(16, 35, 31, .45);
  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
}

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.4rem; line-height: 1.2; }
h4 { font-size: 1.1rem; line-height: 1.3; }
p { margin: 0 0 1em; text-wrap: pretty; }
em { font-style: italic; color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--ink); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* 3. Layout --------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark .lede, .section--dark .muted { color: #b8c9c3; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--row {
  max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--ink-soft); }

/* 4. Components ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--ink-2); }
.btn--ghost { border-color: currentColor; background: transparent; color: inherit; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.section--dark .btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--sm { padding: 10px 18px; font-size: .92rem; }
.btn--block { width: 100%; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.link-arrow:hover { color: var(--accent); }

.tag {
  display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px;
  background: var(--paper-2); border: 1px solid var(--line);
  font-size: .8rem; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.tag--mint { background: var(--mint); border-color: transparent; }
.tag--gold { background: var(--gold); border-color: transparent; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
}
.card--hover { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--ink); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--mint); color: var(--ink); margin-bottom: 20px;
}
.icon svg { width: 24px; height: 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 243, 234, .88); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.4rem/1 var(--font-display); letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; }
.brand-e { font-size: 1.45em; line-height: 0; font-style: italic; color: #4fb3e8; margin-right: 1px; }
.site-footer .brand-e { color: skyblue; }
.wordmark { color: #ee6b6b; }
.site-header .brand { font-size: 2.1rem; } /* 1.5 × the 1.4rem base */.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) {
  display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .98rem;
}
.nav-links a:not(.btn):hover { background: var(--paper-2); }
.nav-links a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav-links .btn { margin-left: 10px; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); cursor: pointer; padding: 0; place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, background .2s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Footer */
.site-footer { background: var(--ink); color: #b8c9c3; padding: 72px 0 28px; font-size: .95rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: var(--paper); margin-bottom: 16px; }
.site-footer h4 { font: 700 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--paper); margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem;
}

/* Forms */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label, .field legend { font-size: .88rem; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.input, .select, .textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font: 400 1rem/1.4 var(--font-body); transition: border-color .15s ease, box-shadow .15s ease;
}
.textarea { min-height: 130px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(191, 227, 207, .7); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--err); }
.field-error { font-size: .84rem; color: var(--err); min-height: 0; }
.form-note { font-size: .84rem; color: var(--ink-soft); margin: 0; }
.form-success { text-align: center; padding: 28px 8px; }
.form-success .icon { margin-inline: auto; background: var(--ok); color: #fff; border-radius: 50%; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); flex: none; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 22px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0; font: 500 1.15rem/1.3 var(--font-display);
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--font-body); color: var(--accent); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 20px; margin: 0; }

/* 5. Sections ------------------------------------------------------------- */
/* Hero */
.hero { padding: clamp(40px, 7vw, 90px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lede { margin-bottom: 32px; }
.search {
  display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 6px;
  background: var(--card); border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px;
  box-shadow: var(--shadow); max-width: 640px;
}
.search label { display: flex; align-items: center; gap: 10px; padding: 0 16px; min-width: 0; }
.search label + label { border-left: 1px solid var(--line); }
.search svg { width: 18px; height: 18px; flex: none; color: var(--ink-soft); }
.search input { border: 0; outline: 0; background: transparent; font: inherit; color: inherit; width: 100%; min-width: 0; padding: 12px 0; }
.search label:focus-within svg { color: var(--accent); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .95rem; color: var(--ink-soft); }
.hero-points li { padding-left: 24px; position: relative; }
.hero-points li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
section[id] { scroll-margin-top: 74px; }
.footer-grid { grid-template-columns: 2fr 1fr 1fr; }
.hero-quick { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .9rem; color: var(--ink-soft); }
.hero-quick a { text-decoration: none; }
.hero-quick a:hover .tag { border-color: var(--ink); }

.hero-art { position: relative; min-height: 460px; }
.hero-art .blob {
  position: absolute; inset: 6% 4% 6% 10%; background: var(--ink); border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
}
.hero-art .ring { position: absolute; right: -4%; top: 2%; width: 150px; height: 150px; border-radius: 50%; background: var(--gold); }
.float-card {
  position: absolute; background: var(--card); border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); width: min(290px, 78%);
}
.float-card small { color: var(--ink-soft); font-size: .8rem; }
.float-card strong { display: block; font: 500 1.15rem/1.25 var(--font-display); margin: 2px 0 10px; }
.fc-1 { left: 0; top: 12%; transform: rotate(-3deg); }
.fc-2 { right: 0; top: 42%; transform: rotate(2deg); }
.fc-3 { left: 12%; bottom: 4%; display: flex; align-items: center; gap: 14px; width: auto; }
.avatars { display: flex; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: .85rem; border: 2px solid var(--card); margin-left: -10px; color: var(--ink);
}
.avatar:first-child { margin-left: 0; }
.avatar.a { background: var(--mint); } .avatar.b { background: var(--gold); } .avatar.c { background: #f3b6a1; } .avatar.d { background: #c9d4f2; }
.match { display: flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 600; }
.match-bar { flex: 1; height: 8px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.match-bar i { display: block; height: 100%; width: 94%; background: var(--ok); border-radius: 99px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 34px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font: 500 clamp(2.2rem, 4.4vw, 3.4rem)/1 var(--font-display); letter-spacing: -.03em; }
.stat span { color: var(--ink-soft); font-size: .95rem; }

/* Audience split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.split-card { border-radius: calc(var(--radius) + 8px); padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; min-height: 420px; }
.split-card--seek { background: var(--mint); }
.split-card--hire { background: var(--ink); color: var(--paper); }
.split-card--hire .muted { color: #b8c9c3; }
.split-card ul { list-style: none; padding: 0; margin: 12px 0 32px; display: grid; gap: 12px; }
.split-card li { padding-left: 30px; position: relative; }
.split-card li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.split-card .btn { margin-top: auto; align-self: flex-start; }

/* Sectors */
.sector { text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.sector .count { margin-top: auto; padding-top: 18px; font-size: .88rem; font-weight: 600; color: var(--accent); }

/* Process */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { counter-increment: step; border-top: 2px solid rgba(255, 255, 255, .25); padding-top: 22px; }
.step::before { content: "0" counter(step); display: block; font: 500 2.6rem/1 var(--font-display); color: var(--gold); margin-bottom: 18px; }
.steps--light .step { border-top-color: var(--ink); }
.steps--light .step::before { color: var(--accent); }

/* Job cards */
.job-list { display: grid; gap: 14px; }
.job {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; text-decoration: none; text-align: left; width: 100%; font: inherit; color: inherit; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.job:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--ink); }
.job h3 { margin: 0 0 4px; font-size: 1.3rem; }
.job .meta { color: var(--ink-soft); font-size: .93rem; }
.job .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.job .side { text-align: right; }
.job .salary { font-weight: 700; white-space: nowrap; }
.job .posted { font-size: .84rem; color: var(--ink-soft); }

/* Testimonials */
.quote { display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 24px; font: 400 1.25rem/1.4 var(--font-display); letter-spacing: -.01em; }
.quote blockquote::before { content: "“"; display: block; font-size: 3.4rem; line-height: .6; color: var(--accent); margin-bottom: 14px; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: .92rem; }
.quote figcaption .avatar { margin: 0; border: 0; }
.quote figcaption span { display: block; color: var(--ink-soft); }

/* CTA band */
.cta-band {
  background: var(--accent); color: #fff; border-radius: calc(var(--radius) + 10px);
  padding: clamp(36px, 6vw, 72px); display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.cta-band h2 { margin: 0; max-width: 16ch; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-band .btn--ghost:hover { background: #fff; color: var(--accent-dark); border-color: #fff; }

/* 6. Pages ---------------------------------------------------------------- */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 64px); }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); max-width: 16ch; }

/* Jobs board */
.board { display: grid; grid-template-columns: 290px 1fr; gap: 32px; align-items: start; padding-bottom: var(--section); }
.filters { position: sticky; top: 98px; display: grid; gap: 22px; }
.filters fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 9px; }
.filters legend { font: 700 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; padding: 0; }
.filters-toggle { display: none; }
.board-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.board-bar .select { width: auto; padding: 9px 14px; }
.empty { text-align: center; padding: 56px 24px; border: 1.5px dashed var(--line); border-radius: var(--radius); }

/* Job dialog */
dialog.sheet {
  border: 0; padding: 0; margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(640px, 100vw); max-width: 100vw;
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow-lg); overflow-y: auto;
}
dialog.sheet::backdrop { background: rgba(16, 35, 31, .55); backdrop-filter: blur(3px); }
dialog.sheet[open] { animation: slide-in .28s ease; }
.sheet-head { position: sticky; top: 0; background: var(--paper); padding: 18px 28px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.sheet-body { padding: 28px; }
.sheet-body h2 { font-size: 2rem; }
.sheet-body h3 { font-size: 1.15rem; margin-top: 28px; }
.sheet-body ul { padding-left: 20px; display: grid; gap: 6px; color: var(--ink-soft); }
.sheet-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }
.sheet-facts div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.sheet-facts small { display: block; color: var(--ink-soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.close-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 1.3rem; line-height: 1; }
.close-btn:hover { background: var(--ink); color: var(--paper); }
.apply-box { margin-top: 32px; }

/* Employers */
.service { display: flex; flex-direction: column; }
.service .best { margin-top: auto; padding-top: 18px; font-size: .9rem; border-top: 1px solid var(--line); }
.guarantee { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.guarantee-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.guarantee-list li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; display: flex; gap: 16px; align-items: baseline; }
.guarantee-list b { font: 500 1.5rem/1 var(--font-display); color: var(--accent); min-width: 84px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: var(--section); }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.info-list small { display: block; font: 700 .76rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.info-list a { text-decoration: none; font-weight: 600; }
.info-list a:hover { color: var(--accent); }

/* 7. Motion --------------------------------------------------------------- */
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.fc-1 { animation: bob 7s ease-in-out infinite; }
.fc-2 { animation: bob 8s ease-in-out -2s infinite; }
.fc-3 { animation: bob 6s ease-in-out -4s infinite; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1000px) {
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 400px; max-width: 520px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .board { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.is-open { display: grid; }
  .filters-toggle { display: inline-flex; }
  .guarantee, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: grid; margin-left: auto; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 74px; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 14px var(--gutter) 22px; display: none;
    box-shadow: 0 30px 40px -30px rgba(16, 35, 31, .3);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 16px; font-size: 1.05rem; }
  .nav-links .btn { margin: 8px 0 0; }
  .split, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 16px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid-3, .grid-4, .steps, .form-row, .footer-grid, .sheet-facts { grid-template-columns: 1fr; }
  .search { grid-template-columns: 1fr; border-radius: 22px; padding: 8px; }
  .search label + label { border-left: 0; border-top: 1px solid var(--line); }
  .search .btn { width: 100%; }
  .job { grid-template-columns: 1fr; padding: 20px; }
  .job .side { text-align: left; display: flex; gap: 12px; align-items: baseline; }
  .hero-art { min-height: 470px; }
  .fc-1 { top: 3%; }
  .fc-2 { top: 39%; }
  .fc-3 { bottom: 1%; left: 6%; }
  .split-card { min-height: 0; }
  .sheet-body { padding: 22px 18px; }
  .sheet-head { padding: 14px 18px; }
}
