/* ============================================================
   SalesPulse — дизайн-система
   Палітра: тепле біле тло, чорнильний синій, гарячий кораловий,
   сонячний жовтий. Підпис: лінія «пульсу».
   ============================================================ */

:root {
  --bg: #FFF8F1;
  --ink: #1B2447;
  --ink-soft: #4A5378;
  --coral: #FF4438;
  --coral-dark: #E02D22;
  --sun: #FFC53D;
  --teal: #0FA48C;
  --card: #FFFFFF;
  --line: #EADFD2;

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Golos Text", system-ui, sans-serif;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(27, 36, 71, 0.08);
  --maxw: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--coral-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; max-width: var(--maxw); margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; color: var(--ink); text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo .pulse-mark { width: 34px; height: 22px; }
.logo em { font-style: normal; color: var(--coral); }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  color: var(--ink-soft); font-weight: 600; font-size: 0.95rem;
}
.main-nav a.active { color: var(--ink); }
.main-nav a:hover { color: var(--ink); text-decoration: none; }

.btn {
  display: inline-block; font-weight: 700; font-family: var(--font-body);
  border: none; cursor: pointer; text-align: center;
  border-radius: 999px; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.btn-primary {
  background: var(--coral); color: #fff;
  padding: 13px 28px; font-size: 1rem;
  box-shadow: 0 6px 18px rgba(255, 68, 56, 0.35);
}
.btn-primary:hover { background: var(--coral-dark); }

.btn-ghost {
  background: transparent; color: var(--ink);
  padding: 12px 24px; border: 2px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

.btn-lg { padding: 16px 36px; font-size: 1.1rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 70px; }
.hero-inner { position: relative; z-index: 2; max-width: 720px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 16px;
  font-size: 0.85rem; font-weight: 600; color: var(--ink-soft);
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  animation: blink 1.6s infinite;
}
@keyframes blink { 50% { opacity: 0.3; } }

h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.15; font-weight: 800; letter-spacing: -0.01em;
}
h1 .accent { color: var(--coral); }

.hero p.lead {
  margin-top: 20px; font-size: 1.15rem; color: var(--ink-soft); max-width: 560px;
}

.salary-chip {
  display: inline-flex; align-items: baseline; gap: 10px;
  margin-top: 26px; background: var(--ink); color: #fff;
  border-radius: var(--radius); padding: 14px 22px;
  box-shadow: var(--shadow);
}
.salary-chip strong {
  font-family: var(--font-display); font-size: 1.5rem; color: var(--sun);
  white-space: nowrap;
}
.salary-chip span { font-size: 0.9rem; opacity: 0.85; }

.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Pulse line — підпис бренду */
.pulse-bg {
  position: absolute; right: -60px; bottom: -10px; width: 60%;
  min-width: 420px; opacity: 0.9; z-index: 1; pointer-events: none;
}
.pulse-path {
  fill: none; stroke: var(--coral); stroke-width: 4;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1400; stroke-dashoffset: 1400;
  animation: draw 2.4s ease forwards .3s;
}
.pulse-path.sun { stroke: var(--sun); animation-delay: .7s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.pulse-divider { width: 140px; height: 26px; margin: 0 auto 18px; }
.pulse-divider path {
  fill: none; stroke: var(--coral); stroke-width: 3.5; stroke-linecap: round;
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.25;
}
.section-head p { margin-top: 12px; color: var(--ink-soft); }

/* Benefit cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: transform .18s ease;
}
.card:hover { transform: translateY(-4px); }
.card .icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--sun), #FFDF8E);
}
.card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }

/* Steps — реальна послідовність, тому нумерація доречна */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: step; }
.step {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 54px 22px 24px;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 18px; left: 22px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--coral); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 0.93rem; }

/* CTA band */
.cta-band {
  background: var(--ink); color: #fff; text-align: center;
  border-radius: calc(var(--radius) + 8px);
  padding: 54px 30px; position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { margin: 14px auto 26px; max-width: 520px; opacity: 0.85; }
.cta-band .pulse-divider path { stroke: var(--sun); }

/* ---------- Vacancy page ---------- */
.page-head { padding: 64px 0 30px; }
.page-head h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.page-head .meta { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.tag {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft);
}
.tag.hot { background: var(--sun); border-color: var(--sun); color: var(--ink); }

.vacancy-grid { display: grid; grid-template-columns: 1fr; gap: 26px; padding-bottom: 70px; }
@media (min-width: 860px) { .vacancy-grid { grid-template-columns: 1.6fr 1fr; align-items: start; } }

.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
}
.panel + .panel { margin-top: 26px; }
.panel h2 { font-size: 1.25rem; margin-bottom: 16px; }
.panel ul { list-style: none; }
.panel ul li {
  position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--ink-soft);
}
.panel ul li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 16px; height: 10px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M1 8 5 8 7 3 10 10 12 6 19 6' fill='none' stroke='%23FF4438' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.side-card { position: sticky; top: 90px; }
.side-card .salary-chip { width: 100%; justify-content: center; margin-top: 0; }
.side-card .btn { width: 100%; margin-top: 18px; }
.side-card .note { margin-top: 16px; font-size: 0.88rem; color: var(--ink-soft); text-align: center; }

/* ---------- Apply form ---------- */
.apply-wrap { max-width: 640px; margin: 0 auto; padding-bottom: 80px; }
.form-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px); padding: 38px 34px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 22px; }
label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; }
label .req { color: var(--coral); }
input[type="text"], input[type="tel"], select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem;
  padding: 13px 16px; border: 2px solid var(--line); border-radius: 12px;
  background: #FFFDF9; color: var(--ink);
  transition: border-color .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--coral);
}
.hint { font-size: 0.83rem; color: var(--ink-soft); margin-top: 6px; }
.form-error {
  display: none; background: #FFECEB; border: 1px solid #FFC7C3;
  color: #A3241B; border-radius: 12px; padding: 12px 16px;
  font-size: 0.92rem; margin-bottom: 20px;
}
.form-error.show { display: block; }

/* honeypot проти спам-ботів */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.success-card {
  display: none; text-align: center; padding: 30px 10px 10px;
}
.success-card.show { display: block; }
.success-card .check {
  width: 74px; height: 74px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--teal); display: flex; align-items: center; justify-content: center;
}
.success-card h2 { margin-bottom: 10px; }
.success-card p { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); padding: 34px 0; margin-top: 20px;
  background: #fff;
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  color: var(--ink-soft); font-size: 0.9rem;
}

/* ---------- Responsive & a11y ---------- */
@media (max-width: 640px) {
  .main-nav { gap: 16px; }
  .main-nav .btn { padding: 10px 18px; font-size: 0.88rem; }
  .hero { padding: 56px 0 46px; }
  .pulse-bg { display: none; }
  .form-card { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-path { animation: none; stroke-dashoffset: 0; }
  .eyebrow .dot { animation: none; }
  .btn:hover, .card:hover { transform: none; }
  html { scroll-behavior: auto; }
}
