:root {
  --red: #ef2d25;
  --red-dark: #d91916;
  --blue: #185da4;
  --ink: #101214;
  --muted: #5f646a;
  --paper: #ffffff;
  --soft: #f5f6f8;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.42; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.container { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }
.section { padding: 24px 0; }
.section-title { margin: 0 0 16px; text-align: center; font-size: 29px; line-height: 1.1; }
.section-title.left { text-align: left; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { height: 86px; color: #fff; background: #0b0d0f; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 38px; }
.brand { flex: 0 0 210px; width: 210px; height: 66px; display: flex; align-items: center; gap: 10px; }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand span { color: #fff; font-size: 17px; font-weight: 800; line-height: .88; letter-spacing: .035em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 34px; margin-left: auto; font-size: 14px; }
.main-nav a { opacity: .92; transition: color .2s ease; }
.main-nav a:hover { color: #ff5149; }
.header-phone { display: flex; align-items: center; gap: 12px; margin-left: 38px; white-space: nowrap; }
.header-phone > i { font-size: 24px; }
.header-phone span { display: grid; }
.header-phone b { font-size: 17px; }
.header-phone small { color: #c8c9ca; font-size: 11px; }
.menu-button { display: none; margin-left: auto; border: 0; color: #fff; background: transparent; font-size: 32px; cursor: pointer; }

.hero { overflow: hidden; background: #fff; }
.hero-grid { min-height: 498px; display: grid; grid-template-columns: 46% 54%; }
.hero-copy { position: relative; z-index: 2; align-self: center; padding: 36px 0 42px; }
.hero h1 { max-width: 560px; margin: 0 0 20px; font-size: clamp(42px, 4.2vw, 57px); line-height: 1.04; letter-spacing: -.025em; }
.hero h1 span { display: block; color: var(--red); }
.hero-subtitle { margin: 0 0 22px; font-size: 23px; line-height: 1.3; font-weight: 700; }
.hero-text { margin: 0 0 30px; color: #30353a; font-size: 16px; }
.hero-actions { display: flex; gap: 20px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 28px; border: 1px solid transparent; border-radius: 4px; font-weight: 700; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: linear-gradient(135deg, #f33b2f, #e6221c); box-shadow: 0 8px 20px rgba(235, 45, 36, .2); }
.button-outline { color: var(--blue); border-color: #7695b3; background: #fff; }
.hero-photo { position: relative; min-height: 498px; margin-right: calc((100vw - min(var(--container), calc(100vw - 48px))) / -2); background: url("./assets/hero-team.png") center / cover no-repeat; }
.hero-photo::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 230px; background: linear-gradient(90deg, #fff 0 42%, rgba(255,255,255,.9) 56%, transparent 100%); }

.vacancies-section { background: #fff; }
.vacancies-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.vacancy-card { position: relative; min-height: 255px; overflow: hidden; padding: 28px 32px; border-radius: 4px; color: #fff; }
.vacancy-dispatcher { background: linear-gradient(135deg, #111416, #08090a); }
.vacancy-master { background: linear-gradient(135deg, #286bb0, #145292); }
.vacancy-heading { display: flex; align-items: center; gap: 20px; }
.vacancy-heading h3 { margin: 0; font-size: 29px; line-height: 1; }
.vacancy-heading small { display: block; margin-top: 6px; font-size: 18px; font-weight: 400; }
.hex-icon, .benefit-icon { display: grid; place-items: center; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.hex-icon { --hex-fill: #111416; position: relative; width: 76px; height: 82px; flex: 0 0 76px; background: #fff; }
.hex-icon::before { content: ""; position: absolute; inset: 2px; clip-path: inherit; background: var(--hex-fill); }
.hex-icon i { position: relative; z-index: 1; font-size: 32px; }
.vacancy-master .hex-icon { --hex-fill: #286bb0; }
.check-list { position: relative; z-index: 1; display: grid; gap: 10px; margin: 20px 0 0 10px; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: center; gap: 12px; }
.check-list li::before { content: "\2713"; display: grid; place-items: center; width: 20px; height: 20px; flex: 0 0 20px; color: #fff; border: 1px solid rgba(255,255,255,.85); background: var(--red); font-size: 12px; transform: rotate(45deg); }
.check-list li::after { content: ""; }
.check-list li::before { line-height: 1; }
.vacancy-master .check-list li::before { background: rgba(255,255,255,.05); }
.vacancy-watermark { position: absolute; right: 26px; bottom: -12px; color: rgba(255,255,255,.07); font-size: 150px; line-height: 1; }

.advantages-section { padding-top: 18px; }
.advantages-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.advantages-grid article { text-align: center; }
.benefit-icon { width: 70px; height: 78px; margin: 0 auto 10px; color: #fff; font-size: 34px; filter: drop-shadow(0 7px 10px rgba(0,0,0,.13)); }
.benefit-icon.red { background: linear-gradient(135deg, #f43c32, #d91e18); }
.benefit-icon.blue { background: linear-gradient(135deg, #3478bd, #14579c); }
.benefit-icon.dark { background: linear-gradient(135deg, #404245, #191a1c); }
.advantages-grid h3 { margin: 0; font-size: 15px; line-height: 1.25; }

.offers-section { background: #fff; }
.offers-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.offer-card { min-height: 238px; display: grid; grid-template-columns: 54% 46%; overflow: hidden; border-radius: 4px; background: #fff; box-shadow: 0 2px 12px rgba(22,29,36,.09); }
.dispatcher-offer { border-left: 5px solid var(--red); }
.master-offer { border-left: 5px solid var(--blue); }
.offer-copy { position: relative; z-index: 1; padding: 32px 8px 26px 26px; }
.offer-copy h3 { display: flex; align-items: center; gap: 15px; margin: 0 0 20px; font-size: 20px; }
.offer-copy h3 i { color: var(--red); font-size: 31px; }
.master-offer .offer-copy h3 i { color: var(--blue); }
.offer-copy ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.offer-copy li { display: flex; gap: 10px; }
.offer-copy li::before { content: "\2713"; display: grid; place-items: center; width: 14px; height: 14px; flex: 0 0 14px; margin-top: 3px; border-radius: 50%; color: #fff; background: var(--red); font-size: 9px; }
.master-offer .offer-copy li::before { background: var(--blue); }
.offer-photo { position: relative; min-height: 238px; background-repeat: no-repeat; background-size: cover; background-position: center; }
.offer-photo-dispatcher { background-image: url("./assets/dispatcher.png"); background-position: 64% center; }
.offer-photo-master { background-image: url("./assets/master.png"); background-position: 64% center; }

.candidates-section { padding-top: 20px; }
.candidate-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; margin-bottom: 28px; }
.candidate-grid article { display: flex; align-items: center; gap: 13px; justify-content: center; }
.candidate-grid i { font-size: 37px; }
.candidate-grid b { font-size: 13px; line-height: 1.2; }
.start-title { position: relative; margin-bottom: 20px; }
.start-title::before, .start-title::after { content: ""; position: absolute; top: 50%; width: 40%; height: 1px; background: #e1e3e5; }
.start-title::before { left: 0; }
.start-title::after { right: 0; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.steps-grid article { position: relative; display: flex; gap: 14px; min-height: 112px; padding-right: 18px; }
.steps-grid article:not(:last-child)::after { content: ""; position: absolute; left: 55px; right: 0; top: 20px; height: 1px; background: #e3e4e6; }
.steps-grid span { position: relative; z-index: 1; width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--red); font-size: 19px; }
.steps-grid article:nth-child(2) span { background: var(--blue); }
.steps-grid article:nth-child(3) span { background: #252729; }
.steps-grid h3 { position: relative; z-index: 1; width: fit-content; margin: 2px 0 9px; padding-right: 8px; background: #fff; font-size: 14px; line-height: 1.2; }
.steps-grid p { margin: 0; color: #4f5459; font-size: 13px; }

.application-wrap { padding: 0 0 14px; }
.application-card { position: relative; min-height: 190px; overflow: hidden; padding: 28px 34px 24px; border-radius: 5px; color: #fff; background: linear-gradient(135deg, #111315, #090a0b); }
.application-content { position: relative; z-index: 2; max-width: 875px; }
.application-card h2 { margin: 0 0 5px; font-size: 31px; }
.application-card p { margin: 0 0 16px; color: #e2e4e5; }
.application-form { display: grid; grid-template-columns: 1fr .82fr 1.42fr .92fr; gap: 8px; }
.application-form input, .application-form select { width: 100%; height: 42px; padding: 0 14px; border: 0; border-radius: 3px; color: #272a2d; background: #fff; outline: none; }
.application-form .button { min-height: 42px; padding: 0 16px; }
.privacy { display: block; margin-top: 8px; color: #cfd1d2; font-size: 10px; }
.form-success { display: none; margin-top: 10px; color: #84df8f; font-weight: 700; }
.form-success.visible { display: block; }
.form-error { display: none; margin-top: 10px; color: #ff8078; font-weight: 700; }
.form-error.visible { display: block; }
.application-art { position: absolute; right: 30px; top: 12px; width: 190px; height: 166px; opacity: .25; }
.application-art img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) brightness(1.65) contrast(.7); }

.site-footer { color: #fff; background: #101214; }
.footer-grid { min-height: 130px; display: grid; grid-template-columns: 1.15fr 1fr 1fr; align-items: center; gap: 60px; }
.footer-brand { height: 62px; }
.footer-grid > div:first-child p { margin: -5px 0 0 50px; color: #d0d2d4; font-size: 11px; }
.footer-grid h3 { margin: 0 0 8px; font-size: 14px; }
.footer-contacts { display: grid; gap: 4px; font-size: 12px; }
.footer-contacts i { width: 18px; color: #dfe1e2; }
.messengers > div { display: flex; gap: 14px; }
.messengers .social-link { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 22px; transition: transform .18s ease, filter .18s ease; }
.messengers .social-link:hover { transform: translateY(-2px); filter: brightness(1.08); }
.messengers .social-link img { width: 100%; height: 100%; display: block; object-fit: contain; }
.messengers .vk img { width: 80%; height: 80%; }
.messengers .vk { background: #2787f5; font-size: 12px; letter-spacing: -.04em; }
.footer-bottom { min-height: 38px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #292c2f; color: #74787b; font-size: 9px; }

@media (max-width: 1050px) {
  .header-inner { gap: 20px; }
  .main-nav { gap: 20px; }
  .header-phone { margin-left: 10px; }
  .hero-grid { grid-template-columns: 52% 48%; }
  .advantages-grid { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .offer-card { grid-template-columns: 1fr; }
  .offer-photo { display: none; }
  .application-content { max-width: calc(100% - 190px); }
}

@media (max-width: 820px) {
  .site-header { height: 74px; }
  .brand { flex-basis: 190px; width: 190px; height: 60px; }
  .brand img { width: 52px; height: 52px; }
  .brand span { font-size: 15px; }
  .menu-button { display: block; }
  .main-nav { position: fixed; z-index: 10; top: 74px; left: 0; right: 0; display: none; margin: 0; padding: 28px 24px; flex-direction: column; align-items: flex-start; color: #fff; background: #0b0d0f; box-shadow: 0 20px 30px rgba(0,0,0,.25); }
  .main-nav.open { display: flex; }
  .header-phone { margin-left: 0; }
  .header-phone small { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 24px; }
  .hero-photo { min-height: 360px; margin: 0 -24px; background-size: cover; background-position: 61% center; }
  .hero-photo::before { display: none; }
  .vacancies-grid, .offers-grid { grid-template-columns: 1fr; }
  .candidate-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .application-content { max-width: 100%; }
  .application-form { grid-template-columns: repeat(2, 1fr); }
  .application-art { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; padding: 25px 0; }
  .messengers { grid-column: span 2; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, var(--container)); }
  .header-phone span { display: none; }
  .hero h1 { font-size: 40px; }
  .hero-subtitle { font-size: 19px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-photo { margin: 0 -14px; min-height: 300px; background-size: cover; background-position: 62% center; }
  .section-title { font-size: 25px; }
  .vacancy-card { padding: 24px 20px; }
  .vacancy-heading h3 { font-size: 23px; }
  .vacancy-heading small { font-size: 15px; }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .offer-copy { padding: 26px 18px; }
  .candidate-grid { grid-template-columns: 1fr; }
  .candidate-grid article { justify-content: flex-start; padding-left: 18px; }
  .start-title::before, .start-title::after { width: 29%; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid article:not(:last-child)::after { display: none; }
  .application-card { padding: 24px 18px; }
  .application-card h2 { font-size: 26px; }
  .application-form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .messengers { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; }
}
