:root {
  --bg: #f2f7ff;
  --surface: #ffffff;
  --text: #111827;
  --muted: #5b6372;
  --line: #d8e3f4;
  --primary: #2358d8;
  --primary-dark: #1b3f9d;
  --primary-soft: #dbe7ff;
  --accent: #f59e0b;
  --anchor-offset: 160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, Arial, sans-serif; background: var(--bg); color: var(--text); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.topbar { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(7px); border-bottom: 1px solid #dce6f5; }
.topbar-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #0f172a; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(140deg, #2358d8, #2d73ff);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 18px; height: 18px; stroke-width: 2.2; }
.logo-text { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; font-size: 18px; font-weight: 800; line-height: 1.05; }
.logo-city { font-size: 12px; font-weight: 600; color: #5b6372; }

.menu { display: inline-flex; align-items: center; gap: 4px; }
.menu a { text-decoration: none; color: #1f2937; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 10px; }
.menu a:hover { background: #eef4ff; }

.page { padding-top: 24px; padding-bottom: 42px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 16px; }

.hero-offer {
  padding: 30px 32px; border-radius: 26px;
  background: radial-gradient(circle at 85% 12%, rgba(245, 158, 11, 0.2), transparent 40%), linear-gradient(140deg, #0f1f44, #1b3f9d 64%, #2358d8);
  color: #fff; box-shadow: 0 20px 42px rgba(15, 23, 42, 0.26);
}
.label {
  display: inline-flex; padding: 10px 18px; border-radius: 999px; font-size: 17px; font-weight: 700;
  background: rgba(245, 158, 11, 0.22); color: #fff4dd; border: 1px solid rgba(245, 158, 11, 0.5);
}
h1 { margin: 16px 0 12px; font-size: clamp(30px, 4.2vw, 52px); line-height: 1.02; letter-spacing: -0.02em; }
.hero-offer p { margin: 0; color: #dbe6ff; line-height: 1.5; max-width: 640px; }

.hero-points { margin-top: 18px; display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.point { padding: 12px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.05); color: #dbe6ff; line-height: 1.35; }
.point-icon {
  display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center;
  border-radius: 10px; background: rgba(245, 158, 11, 0.2); margin-bottom: 6px;
}
.point-icon svg { width: 18px; height: 18px; stroke-width: 2.2; }
.point-title { display: block; color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.point-text { display: block; font-size: 13px; color: #dbe6ff; }

.hero-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; border: 0; text-decoration: none; cursor: pointer;
  border-radius: 12px; background: var(--primary); color: #fff; font-size: 15px; font-weight: 700; padding: 12px 18px;
}
.btn:hover { filter: brightness(0.95); }
.btn-ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.35); }
.btn-small { padding: 10px 14px; font-size: 14px; background: var(--primary-dark); }

.lead-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px;
  box-shadow: 0 14px 34px rgba(13, 18, 31, 0.09);
}
.lead-card h2 { margin: 0; font-size: 30px; line-height: 1.1; }
.lead-card p { margin: 8px 0 0; color: var(--muted); }
.lead-form { margin-top: 18px; display: grid; gap: 12px; }
#leadForm, #apply, #vacancies, #advantages, #steps { scroll-margin-top: var(--anchor-offset); }

label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #5b6372; }
input, select {
  width: 100%; border: 1px solid #cfd8ea; border-radius: 12px; padding: 13px 14px; font-size: 16px;
  outline: none; background: #fff; color: #0f172a;
}
input:focus, select:focus { border-color: #1f4fc9; box-shadow: 0 0 0 4px rgba(35, 88, 216, 0.16); }
button {
  margin-top: 4px; border: 0; border-radius: 12px; padding: 14px; cursor: pointer;
  background: linear-gradient(90deg, #2358d8, #2d73ff); color: #fff; font-size: 16px; font-weight: 800;
}
button:hover { filter: brightness(0.95); }

.msg { min-height: 20px; margin-top: 2px; font-size: 14px; color: var(--muted); }
.msg-ok { color: #0f766e; }
.msg-error { color: #dc2626; }

.consent-row { margin-top: 4px; display: flex; align-items: flex-start; gap: 8px; }
.consent-row input[type="checkbox"] { width: 16px; height: 16px; margin-top: 2px; accent-color: #2358d8; }
.consent-label { margin: 0; font-size: 12px; line-height: 1.4; color: #5f6571; font-weight: 500; }
.consent-label a { color: inherit; text-decoration: underline; }

.section { margin-top: 18px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); padding: 24px; }
h3 { margin: 0 0 14px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.05; }

.vacancies { background: linear-gradient(130deg, #f8fbff, #eef4ff); }
.vacancy-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vacancy-card { border: 1px solid #d8e3f4; border-radius: 16px; background: #fff; padding: 16px; display: grid; gap: 10px; }
.vacancy-icon {
  width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: #e6eeff; color: #2358d8;
}
.vacancy-icon svg { width: 20px; height: 20px; stroke-width: 2.1; }
.vacancy-card h4 { margin: 0; font-size: 20px; line-height: 1.2; }
.vacancy-card p { margin: 0; color: #5f6674; line-height: 1.4; min-height: 58px; }
.vacancy-btn { width: 100%; margin: 0; font-size: 15px; padding: 12px; }

.quiz-link {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  color: #163b95; font-weight: 700; border-radius: 12px; padding: 10px 12px; background: #dbe7ff;
}
.quiz-link span {
  width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: #2358d8;
}
.quiz-link svg { width: 16px; height: 16px; }

.tiles { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { min-height: 168px; border-radius: 16px; border: 1px solid #dde6f5; padding: 14px; background: linear-gradient(180deg, #fff 0%, #f7faff 100%); }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: #e6eeff; color: #2358d8; border: 1px solid #b8cbf4;
}
.icon svg { width: 22px; height: 22px; stroke-width: 2.1; }
.tile h4 { margin: 12px 0 6px; font-size: 18px; line-height: 1.2; }
.tile p { margin: 0; color: #5f6674; line-height: 1.4; }

.steps { background: linear-gradient(130deg, #edf4ff, #dbe7ff); }
.steps-row {
  margin-top: 12px; border-radius: 18px; border: 1px solid #cbd9f1; background: #fff;
  padding: 14px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}
.step {
  width: 300px; max-width: 100%; border-radius: 12px; border: 1px solid #dde6f5;
  background: #fff; box-shadow: 0 6px 14px rgba(16, 20, 29, 0.08); padding: 12px;
}
.step-num {
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px;
  background: #2358d8; color: #fff; font-size: 13px; font-weight: 800; margin-bottom: 8px;
}
.step-icon {
  display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 8px;
  background: #dbe7ff; margin-left: 8px; margin-bottom: 8px;
}
.step-icon svg { width: 16px; height: 16px; stroke-width: 2.2; }
.step-text h4 { margin: 0 0 4px; font-size: 17px; color: #0f172a; line-height: 1.2; }
.step-text p { margin: 0; color: #334155; font-size: 14px; line-height: 1.45; }

.test-cta {
  background: linear-gradient(140deg, #102450, #1b3f9d 60%, #2358d8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.test-cta__content { display: flex; align-items: center; gap: 12px; }
.test-cta__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.test-cta__icon svg { width: 24px; height: 24px; }
.test-cta h3 { margin: 0 0 6px; color: #fff; }
.test-cta p { margin: 0; color: #dbe6ff; line-height: 1.45; }
.test-cta__btn {
  flex-shrink: 0;
  background: #ffffff;
  color: #1b3f9d;
}

.thanks-modal { position: fixed; inset: 0; display: none; z-index: 120; }
.thanks-modal.is-open { display: block; }
.thanks-modal__overlay { position: absolute; inset: 0; background: rgba(4, 10, 19, 0.58); }
.thanks-modal__dialog {
  position: relative; width: min(92vw, 460px); margin: 10vh auto 0; padding: 24px;
  border-radius: 16px; background: #fff; box-shadow: 0 22px 50px rgba(0, 0, 0, 0.3);
}
.thanks-modal__close { position: absolute; right: 10px; top: 8px; border: 0; background: transparent; font-size: 28px; line-height: 1; color: #64748b; cursor: pointer; }
.thanks-modal__label { margin: 0 0 8px; color: #2358d8; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.thanks-modal__title { margin: 0; font-size: 28px; line-height: 1.1; }
.thanks-modal__text { margin: 10px 0 0; color: #475569; line-height: 1.45; }
.thanks-modal__btn { margin-top: 16px; width: 100%; }

.footer { background: #0f172a; color: #c6cfdf; }
.footer-inner { padding: 26px 20px 28px; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-inner > div:last-child { justify-self: end; text-align: right; }
.footer-title { margin: 0; color: #fff; font-weight: 700; }
.footer-text { margin: 6px 0 0; font-size: 14px; line-height: 1.4; }

@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; }
  .vacancy-grid, .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { width: calc(50% - 10px); }
}

@media (max-width: 760px) {
  :root { --anchor-offset: 230px; }
  .topbar-inner { min-height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  .menu { width: 100%; order: 3; overflow: auto; white-space: nowrap; }
  .page { padding-top: 14px; }
  .hero-offer, .lead-card, .section { padding: 18px; border-radius: 18px; }
  .hero-points, .vacancy-grid, .tiles { grid-template-columns: 1fr; }
  .step { width: 100%; }
  .test-cta { flex-direction: column; align-items: flex-start; }
  .test-cta__content { align-items: flex-start; }
  .test-cta__btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; padding-top: 20px; padding-bottom: 22px; }
  .footer-inner > div:last-child { justify-self: start; text-align: left; }
}
