/* ==========================================================================
   Kovina Pro – recruitment page. Mobile first.
   Dark navy + one accent (safety orange). Big tap targets (min 52 px).
   ========================================================================== */

@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --navy-950: #08111f;
  --navy-900: #0b1626;
  --navy-800: #13243b;
  --navy-700: #1d3352;
  --navy-600: #2c4569;
  --ink: #0b1626;
  --ink-2: #44536a;
  --bg: #f2f4f7;
  --card: #ffffff;
  --line: #cfd6e0;
  --line-soft: #e3e8ee;
  --accent: #ff8a1f;
  --accent-press: #f07a0c;
  --accent-soft: #fff0e1;
  --accent-ink: #8a3a00;
  --ok: #17803f;
  --ok-soft: #e6f5ec;
  --err: #c0262d;
  --err-soft: #fdecec;
  --wa: #25d366;
  --radius: 12px;
  --tap: 56px;
  --head: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --body: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;            /* 18 px: easy to read, no zoom on iOS inputs */
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
h3 { font-size: 1.375rem; }
p { margin: 0; }
a { color: inherit; }
svg { width: 1em; height: 1em; flex: none; }
.sprite { position: absolute; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip {
  position: absolute; left: 8px; top: -100px; z-index: 100;
  background: var(--accent); color: var(--navy-950); padding: 12px 16px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--tap); padding: 12px 22px;
  border: 2px solid transparent; border-radius: var(--radius);
  font: 600 1.125rem/1.2 var(--body); text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .15s, transform .1s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn__icon { width: 1.3em; height: 1.3em; }
.btn--accent { background: var(--accent); color: var(--navy-950); }
.btn--accent:hover { background: var(--accent-press); }
.btn--xl { min-height: 64px; font-size: 1.25rem; padding: 14px 26px; font-weight: 700; }
.btn--block { display: flex; width: 100%; }
.btn--navy { background: var(--navy-900); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy-700); }
.btn--wa { background: transparent; color: var(--ink); border-color: var(--navy-900); }
.btn--wa .btn__icon { color: #128c4a; }
.btn--wa:hover { background: rgba(11, 22, 38, .05); }
.btn--square { width: var(--tap); padding: 0; }
.btn:disabled { opacity: .65; cursor: progress; }

.link-btn {
  background: none; border: 0; padding: 6px 0; min-height: 44px;
  font: inherit; font-weight: 600; color: var(--navy-700);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* ---------------- header ---------------- */

.top {
  position: sticky; top: 0; z-index: 30;
  background: var(--navy-950); color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--head); font-size: 1.25rem; }
.brand__mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px;
  background: var(--accent); color: var(--navy-950);
}
.brand__mark svg { width: 24px; height: 24px; }
.brand__name { font-weight: 500; letter-spacing: .01em; }
.brand__name b { font-weight: 700; color: var(--accent); margin-left: 3px; }
.demo-badge {
  font: 600 .7rem/1 var(--body); letter-spacing: .08em; padding: 5px 7px; border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .35); color: rgba(255, 255, 255, .8);
}
@media (max-width: 440px) {
  .brand { gap: 8px; font-size: 1.1rem; min-width: 0; }
  .brand__mark { width: 34px; height: 34px; }
  .demo-badge { font-size: .62rem; padding: 4px 5px; }
  .langs__btn { min-width: 46px; padding: 0 6px; font-size: .95rem; }
}
@media (max-width: 350px) { .brand__name { display: none; } }

.langs { flex: none; display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .07); }
.langs__btn {
  min-width: 52px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 9px;
  background: transparent; color: #fff; font: 600 1rem/1 var(--body); letter-spacing: .03em; cursor: pointer;
}
.langs__btn[aria-pressed="true"] { background: var(--accent); color: var(--navy-950); }
.langs__btn:not([aria-pressed="true"]):hover { background: rgba(255, 255, 255, .12); }

/* ---------------- hero ---------------- */

.hero {
  position: relative; color: #fff;
  background-color: var(--navy-900);
  background-image:
    radial-gradient(ellipse 70% 60% at 85% 10%, rgba(255, 138, 31, .16), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
}
.hero__in { display: grid; gap: 32px; padding-top: 36px; padding-bottom: 44px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 1rem; color: rgba(255, 255, 255, .78); margin-bottom: 14px;
}
.kicker::before { content: ''; width: 28px; height: 4px; border-radius: 2px; background: var(--accent); }
.hero h1 { font-size: clamp(2.35rem, 10.5vw, 4.25rem); line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
.hero__lead { margin-top: 18px; font-size: 1.2rem; color: rgba(255, 255, 255, .86); max-width: 36ch; }
.hero__cta { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.hero .btn--wa { color: #fff; border-color: rgba(255, 255, 255, .55); }
.hero .btn--wa .btn__icon { color: var(--wa); }
.hero .btn--wa:hover { background: rgba(255, 255, 255, .08); }
.hero__note { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: rgba(255, 255, 255, .78); font-size: 1rem; }
.hero__note svg { color: var(--accent); width: 1.2em; height: 1.2em; }

.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.benefit {
  display: flex; align-items: center; gap: 16px; padding: 14px 16px;
  border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
}
.benefit__icon {
  display: grid; place-items: center; flex: none; width: 60px; height: 60px; border-radius: 14px;
  background: var(--accent); color: var(--navy-950);
}
.benefit__icon svg { width: 32px; height: 32px; }
.benefit strong { display: block; font-family: var(--head); font-size: 1.3rem; line-height: 1.2; }
.benefit strong + span { display: block; color: rgba(255, 255, 255, .75); font-size: 1rem; }

.stripe {
  height: 12px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, var(--navy-950) 14px 28px);
}

@media (min-width: 560px) {
  .hero__cta { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 960px) {
  .hero__in { grid-template-columns: 1.25fr .9fr; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 80px; }
  .benefit { padding: 20px; }
}

/* ---------------- sections ---------------- */

.section { padding: 52px 0; }
.section__lead { margin-top: 10px; color: var(--ink-2); max-width: 60ch; }
@media (min-width: 960px) { .section { padding: 80px 0; } }

/* jobs */
.jobs__grid { display: grid; gap: 18px; margin-top: 28px; }
@media (min-width: 760px) { .jobs__grid { grid-template-columns: 1fr 1fr; gap: 24px; } }

.job {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 16px; padding: 22px 18px;
  box-shadow: 0 1px 2px rgba(11, 22, 38, .05), 0 6px 20px -12px rgba(11, 22, 38, .25);
  border-top: 5px solid var(--navy-900);
}
@media (min-width: 720px) { .job { padding: 28px; } }
.job__head { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.job__tag {
  font-weight: 600; font-size: .9rem; padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
}
.job h3 { font-size: 1.55rem; }
.job__desc { color: var(--ink); }
.job__need { display: flex; gap: 10px; color: var(--ink-2); font-size: 1rem; }
.job__need svg { color: var(--ok); width: 1.25em; height: 1.25em; margin-top: 2px; }
.job__facts { margin: 0; display: grid; gap: 8px; padding: 14px; border-radius: 12px; background: var(--bg); }
.job__facts div { display: grid; gap: 2px; }
.job__facts dt { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.job__facts dt svg { color: var(--navy-700); }
.job__facts dd { margin: 0; font-weight: 600; font-size: 1.1rem; }
.job__offer-t { font-weight: 600; font-size: .9rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.job__offer { list-style: none; margin: -6px 0 0; padding: 0; display: grid; gap: 8px; }
.job__offer li { display: flex; align-items: center; gap: 12px; }
.job__offer svg {
  width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: var(--navy-900); color: var(--accent);
}
.job__apply { margin-top: auto; }

/* steps */
.steps { background: var(--card); border-block: 1px solid var(--line-soft); }
.steps__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; counter-reset: s; }
.steps__list li { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; align-items: start; }
.steps__n {
  grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy-900); color: var(--accent); font: 700 1.5rem/1 var(--head);
}
.steps__list strong { font-family: var(--head); font-size: 1.3rem; padding-top: 4px; }
.steps__list span:last-child { color: var(--ink-2); }
@media (min-width: 860px) {
  .steps__list { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

/* ---------------- form ---------------- */

.apply { background: var(--navy-900); }
.apply__in { display: flex; justify-content: center; }
.form-card { width: 100%; max-width: 760px; }
.card {
  background: var(--card); border-radius: 18px; padding: 26px 18px;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .6);
}
@media (min-width: 720px) { .card { padding: 44px 48px; } }
.form-card h2 { font-size: clamp(2rem, 7vw, 2.6rem); }
.form-card__lead { margin-top: 8px; color: var(--ink-2); }

#apply-form { display: grid; gap: 26px; margin-top: 26px; }

.field { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 8px; }
.label { display: block; padding: 0; font-weight: 600; font-size: 1.15rem; line-height: 1.3; }
legend.label { margin-bottom: 8px; }
.hint { color: var(--ink-2); font-size: 1rem; }
.err { color: var(--err); font-weight: 600; font-size: 1rem; }
.err:empty { display: none; }

.input {
  width: 100%; min-height: var(--tap); padding: 12px 14px;
  font: 400 1.125rem/1.3 var(--body); color: var(--ink);
  background: #fff; border: 2px solid var(--line); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #8994a5; }
.input:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(255, 138, 31, .35); }
textarea.input { min-height: 104px; resize: vertical; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 36px; font-weight: 600;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%230b1626' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 20px;
}
.phone { display: grid; grid-template-columns: 128px 1fr; gap: 8px; }
@media (min-width: 560px) { .phone { grid-template-columns: 150px 1fr; } }

.is-invalid .input { border-color: var(--err); background-color: #fffafa; }
.is-invalid .tile span { border-color: #e9a3a6; }
.is-invalid .check > span::before { border-color: var(--err); }

/* radio tiles */
.tiles { display: grid; gap: 10px; }
.tiles--2 { grid-template-columns: 1fr 1fr; }
.tiles--3 { grid-template-columns: 1fr 1fr; }
.tiles--3 .tile:last-child { grid-column: 1 / -1; }
@media (min-width: 480px) {
  .tiles--3 { grid-template-columns: repeat(3, 1fr); }
  .tiles--3 .tile:last-child { grid-column: auto; }
}
.tile--wide { grid-column: 1 / -1; }
@media (min-width: 600px) {
  .tiles--1 { grid-template-columns: 1fr 1fr; }
  .tiles--1 .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.tile { position: relative; display: flex; }
.tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile span {
  position: relative; flex: 1; display: flex; align-items: center;
  min-height: var(--tap); padding: 12px 10px 12px 42px;
  border: 2px solid var(--line); border-radius: 10px; background: #fff;
  font-weight: 600; line-height: 1.25; cursor: pointer; transition: border-color .12s, background-color .12s;
}
.tile span::before {
  content: ''; position: absolute; left: 12px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  border-radius: 50%; border: 2px solid #8a96a8; background: #fff;
}
@media (hover: hover) { .tile:hover span { border-color: var(--navy-600); } }
.tile input:checked + span { border-color: var(--navy-900); background: #eef2f8; box-shadow: inset 0 0 0 1px var(--navy-900); }
@media (max-width: 420px) { .tiles--2 .tile span, .tiles--3 .tile span { font-size: 1.0625rem; letter-spacing: -0.005em; } }
.tile input:checked + span::before { border: 7px solid var(--accent); background: var(--navy-900); }
.tile input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

/* checkboxes */
.check { position: relative; display: flex; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check > span { position: relative; padding-left: 44px; min-height: 30px; font-weight: 500; line-height: 1.4; }
.check > span::before {
  content: ''; position: absolute; left: 0; top: -1px; width: 30px; height: 30px;
  border: 2px solid #8a96a8; border-radius: 8px; background: #fff;
}
.check input:checked + span::before {
  background: var(--navy-900) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23ff8a1f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 22px no-repeat;
  border-color: var(--navy-900);
}
.check input:focus-visible + span::before { outline: 3px solid var(--accent); outline-offset: 2px; }
.check--soft > span { color: var(--ink-2); font-size: 1rem; }
.privacy-link { justify-self: start; margin-left: 44px; margin-top: -6px; }

/* file */
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.btn--file {
  justify-content: flex-start; background: #fff; color: var(--navy-900);
  border: 2px dashed var(--navy-600); font-weight: 600;
}
.btn--file:hover { background: #f5f7fa; }
.file-input:focus-visible + .btn--file { outline: 3px solid var(--accent); outline-offset: 2px; }
.file-status {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px;
  background: var(--ok-soft); border: 2px solid #a8dbbc;
}
.file-status__icon { color: var(--ok); width: 28px; height: 28px; }
.file-status__text { flex: 1; min-width: 0; display: grid; font-size: 1rem; }
.file-status__text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-status__text span { color: var(--ok); font-weight: 600; }
.is-invalid .btn--file { border-color: var(--err); }

/* honeypot */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* error summary */
.summary {
  margin-top: 22px; padding: 16px 18px; border-radius: 12px;
  background: var(--err-soft); border: 2px solid var(--err); color: var(--ink);
}
.summary p { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--err); }
.summary p svg { width: 1.4em; height: 1.4em; }
.summary ul { margin: 8px 0 0; padding-left: 22px; }
.summary li { margin: 4px 0; }
.summary a { font-weight: 600; }
.summary:focus { outline: none; }

.send-error {
  padding: 14px 16px; border-radius: 10px; background: var(--err-soft); border: 2px solid var(--err);
  font-weight: 600; color: var(--err);
}

/* thank-you */
.thanks { text-align: center; display: grid; justify-items: center; gap: 14px; padding: 12px 0 4px; }
.thanks:focus { outline: none; }
.thanks__icon {
  display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%;
  background: var(--ok); color: #fff; box-shadow: 0 0 0 10px var(--ok-soft);
  margin-bottom: 8px;
}
.thanks__icon svg { width: 52px; height: 52px; }
.thanks h2 { font-size: clamp(2rem, 8vw, 2.75rem); }
.thanks__big { font-size: 1.3rem; font-weight: 600; }
.thanks__call {
  font-size: 1.3rem; line-height: 1.4; max-width: 30ch;
  padding: 16px 18px; border-radius: 14px; background: var(--accent-soft); border: 2px solid #ffc999;
}
.thanks__tip { color: var(--ink-2); max-width: 40ch; }
.thanks__demo {
  font-size: .95rem; color: var(--ink-2); padding: 10px 14px; border-radius: 10px;
  border: 1px dashed var(--line); max-width: 46ch;
}
.thanks__actions { display: grid; gap: 10px; width: 100%; max-width: 420px; margin-top: 8px; }
.nowrap { white-space: nowrap; }

/* ---------------- FAQ ---------------- */

.faq__in { max-width: 860px; }
.faq__list { margin-top: 24px; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line-soft); border-radius: 12px; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: var(--tap); padding: 14px 18px; font-weight: 600; font-size: 1.15rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy-900); color: var(--accent); font: 700 1.4rem/1 var(--head);
}
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 18px 18px; color: var(--ink-2); }

/* ---------------- footer ---------------- */

.footer { background: var(--navy-950); color: rgba(255, 255, 255, .8); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); font-size: 1rem; }
.footer__in { display: grid; gap: 10px; }
.footer__brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; }
.footer__brand svg { color: var(--accent); width: 22px; height: 22px; }
.footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.footer .link-btn { color: #fff; }
.footer__demo { color: rgba(255, 255, 255, .55); font-size: .9rem; }

/* ---------------- sticky apply bar (phones) ---------------- */

.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(8, 17, 31, .96); border-top: 1px solid rgba(255, 255, 255, .1);
}
.stickybar .btn--accent { flex: 1; }
.stickybar .btn--wa { color: #fff; border-color: rgba(255, 255, 255, .5); }
.stickybar .btn--wa .btn__icon { color: var(--wa); width: 28px; height: 28px; }
@media (min-width: 900px) { .stickybar { display: none !important; } }

/* ---------------- privacy dialog ---------------- */

.dialog {
  width: min(680px, calc(100% - 24px)); max-height: calc(100% - 32px); padding: 0;
  border: 0; border-radius: 16px; color: var(--ink); background: #fff;
}
.dialog::backdrop { background: rgba(8, 17, 31, .7); }
.dialog__in { padding: 24px 20px; display: grid; gap: 18px; }
@media (min-width: 720px) { .dialog__in { padding: 36px 40px; } }
.dialog h2 { font-size: 1.75rem; }
.privacy { margin: 0; display: grid; gap: 4px 20px; font-size: 1rem; }
.privacy dt { font-weight: 700; font-family: var(--head); font-size: 1.1rem; margin-top: 10px; }
.privacy dd { margin: 0; color: var(--ink-2); }
@media (min-width: 720px) {
  .privacy { grid-template-columns: 150px 1fr; }
  .privacy dt { margin-top: 0; }
  .privacy dd { padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
}
