:root {
  --bg: #f4f6fb;
  --text: #121212;
  --muted: #666f7a;
  --card: #ffffff;
  --accent: #ffb800;
  --blue: #0717ff;
  --dark: #161616;
  --line: #d7dbe3;
  --radius: 28px;
  --shadow: 0 18px 50px rgba(10, 22, 70, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    url("assets/hero.jpg") center/cover no-repeat,
    #1d1d1d;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,.25), rgba(0,0,0,.68));
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 850px;
  text-align: center;
  color: #fff;
}

.hero__label,
.section-head__label {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: .95;
  font-weight: 900;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.hero__text {
  max-width: 760px;
  margin: 28px auto 0;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
  color: rgba(255,255,255,.9);
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 42px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 34px;
  border: 0;
  border-radius: 0;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--accent {
  background: var(--accent);
  color: #111;
}

.btn--light {
  background: #fff;
  color: #111;
}

.btn--blue {
  min-height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 16px rgba(0, 0, 0, .28);
}

.btn--dark {
  width: 100%;
  background: var(--dark);
  color: #fff;
  border-radius: 10px;
}

.section {
  padding: 92px 0;
}

.jobs {
  background:
    linear-gradient(170deg, #fff 0 38%, #7791df 38% 100%);
}

.section-head {
  max-width: 740px;
  margin-bottom: 42px;
}

.section-head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -.04em;
}

.section-head p:not(.section-head__label) {
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
}

.jobs__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px;
}

.job-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.job-card img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center top;
  background: #dce4f5;
}

.job-card__body {
  padding: 28px 26px 34px;
  text-align: center;
}

.job-card h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.08;
}

.salary {
  margin: 14px 0 0;
  font-size: 18px;
  font-weight: 900;
}

.job-card__text {
  min-height: 50px;
  margin: 16px 0 24px;
  color: #2b2b2b;
  line-height: 1.35;
}

.benefits {
  background: #fff;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.benefit-card {
  padding: 30px;
  border-radius: 24px;
  background: #f4f6fb;
  border: 1px solid #e1e5ef;
}

.benefit-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border-radius: 18px;
  background: var(--accent);
  font-size: 26px;
  font-weight: 900;
}

.benefit-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.benefit-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.faq {
  background: var(--bg);
}

.faq__list {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

details {
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e1e5ef;
  box-shadow: 0 8px 30px rgba(10, 22, 70, 0.06);
}

summary {
  padding: 24px 28px;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

details p {
  margin: 0;
  padding: 0 28px 24px;
  color: var(--muted);
  line-height: 1.5;
}

.footer {
  width: 100%;
  background: #111;
  color: #fff;
  padding: 34px 0 calc(34px + env(safe-area-inset-bottom));
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer p {
  margin: 8px 0 0;
  color: rgba(255,255,255,.68);
}

.footer__contacts {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer__contacts a {
  font-weight: 900;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal.is-open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.64);
}

.modal__dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 44px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
}

.modal h2 {
  margin: 0;
  text-align: center;
  font-size: 44px;
  line-height: 1;
}

.modal__subtitle {
  margin: 14px 0 28px;
  text-align: center;
  color: var(--muted);
}

.lead-form {
  display: grid;
  gap: 18px;
}

.lead-form label:not(.checkbox) {
  display: grid;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 2px solid #dedede;
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 18px;
  outline: none;
}

.lead-form input:focus,
.lead-form textarea:focus {
  border-color: var(--blue);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #343434;
  line-height: 1.35;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.form-status {
  min-height: 22px;
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

.form-status.is-success {
  color: #16843a;
}

.form-status.is-error {
  color: #b00020;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .hero {
    min-height: 620px;
  }

  .jobs__grid,
  .benefits__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .job-card h3 {
    font-size: 24px;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 20px, 1180px);
  }

  .hero {
    min-height: 620px;
  }

  .hero__actions,
  .footer__inner,
  .footer__contacts {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn,
  .footer__contacts .btn,
  .footer__contacts a {
    width: 100%;
  }

  .footer {
    padding: 34px 0 calc(64px + env(safe-area-inset-bottom));
  }

  .section {
    padding: 64px 0;
  }

  .jobs__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .job-card {
    border-radius: 18px;
  }

  .job-card img {
    height: 112px;
  }

  .job-card__body {
    padding: 16px 10px 18px;
  }

  .job-card h3 {
    font-size: 17px;
  }

  .salary {
    font-size: 13px;
  }

  .job-card__text {
    min-height: 54px;
    margin: 10px 0 14px;
    font-size: 12px;
  }

  .job-card .btn {
    width: 100%;
    min-height: 42px;
    padding: 0 10px;
    font-size: 13px;
  }

  .benefits__grid {
    grid-template-columns: 1fr;
  }

  .modal__dialog {
    padding: 36px 18px 24px;
  }

  .modal h2 {
    font-size: 34px;
  }

  .lead-form label:not(.checkbox) {
    font-size: 17px;
  }
}
