/* Работа в Бургер Кинг — фирменный стиль */
:root {
  --red: #d62300;
  --orange: #ff8732;
  --yellow: #ffbe00;
  --green: #1a8a4a;
  --brown: #502314;
  --cream: #f5ebdc;
  --cream-2: #efe0c8;
  --ink: #2b1408;
  --muted: #7a6a5d;
  --card: #fffdf8;
  --radius: 20px;
  --shadow: 0 2px 0 rgba(80, 35, 20, 0.12), 0 10px 28px rgba(80, 35, 20, 0.08);
  --shadow-h: 0 3px 0 rgba(80, 35, 20, 0.18), 0 16px 36px rgba(80, 35, 20, 0.14);
  --f-head: "Onest", system-ui, sans-serif;
  --f-num: "Unbounded", "Onest", sans-serif;
  --f-text: "Golos Text", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-text);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--f-head); line-height: 1.12; color: var(--brown); }
h1 { font-size: clamp(34px, 6vw, 64px); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 3.4vw, 38px); font-weight: 700; margin-bottom: 18px; }
h3.sub-h { font-size: 17px; margin: 22px 0 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.lead { font-size: clamp(16px, 2vw, 20px); color: #4a3527; }
.muted { color: var(--muted); }
.sm { font-size: 13px; }

/* Шапка */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 235, 220, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--brown);
}
.header-in { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--brown); }
.logo:hover { text-decoration: none; }
.logo-t { font-family: var(--f-head); font-weight: 600; font-size: 15px; line-height: 1.15; }
.logo-t b { color: var(--red); }
.main-nav { display: flex; gap: 18px; margin-left: auto; }
.main-nav a { color: var(--ink); font-weight: 500; font-size: 15px; }
.main-nav a:hover { color: var(--red); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; height: 3px; background: var(--brown); margin: 5px 0; border-radius: 2px; }

/* Кнопки */
.btn {
  display: inline-block; font-family: var(--f-head); font-weight: 700;
  background: var(--red); color: #fff; border: 0; border-radius: 999px;
  padding: 14px 28px; font-size: 16px; cursor: pointer;
  box-shadow: 0 3px 0 #8f1700, var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #8f1700, var(--shadow-h); text-decoration: none; color: #fff; }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #8f1700; }
.btn-big { padding: 18px 34px; font-size: 18px; }
.btn-small { padding: 10px 20px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--brown); border: 2px solid var(--brown); box-shadow: none; }
.btn-ghost:hover { background: var(--brown); color: var(--cream); box-shadow: none; }

/* Хлебные крошки */
.crumbs { max-width: 1140px; margin: 0 auto; padding: 14px 20px 0; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs-sep { margin: 0 8px; color: var(--muted); }

/* Hero */
.hero { padding: 48px 0 56px; background: linear-gradient(160deg, var(--cream) 60%, #ffe8cf 100%); }
.hero-in { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: center; }
.hero-sm { padding: 36px 0 30px; }
.hero-v { padding: 40px 0 44px; }
.over { font-family: var(--f-head); font-weight: 600; color: var(--red); font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.hero h1 { margin-bottom: 16px; }
.hero .lead { margin-bottom: 26px; max-width: 56ch; }
.hero-img img { border-radius: var(--radius); box-shadow: var(--shadow-h); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-facts { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-facts b { font-family: var(--f-num); font-size: 22px; color: var(--red); display: block; }
.hero-facts span { font-size: 13px; color: var(--muted); }
.live-counter {
  display: inline-block; margin-top: 18px; padding: 10px 18px;
  background: var(--card); border: 2px dashed var(--orange); border-radius: 14px;
  font-size: 15px;
}
.live-counter b { font-family: var(--f-num); color: var(--red); }
.hot { background: var(--yellow); color: var(--brown); padding: 3px 10px; border-radius: 999px; font-size: 13px; text-transform: none; letter-spacing: 0; }
.salary-plate { display: inline-flex; align-items: baseline; gap: 8px; background: var(--card); border-radius: 16px; padding: 14px 22px; box-shadow: var(--shadow); margin-bottom: 24px; }
.salary-plate b { font-family: var(--f-num); font-size: clamp(20px, 3vw, 30px); color: var(--red); }
.salary-plate span { color: var(--muted); font-size: 14px; }

/* Секции */
.sec { padding: 34px 0; }
.sec-alt { background: #fff6e8; }

/* Карточки вакансий */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.vcard {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--card); border: 2px solid var(--brown); border-radius: var(--radius);
  padding: 22px; color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.vcard:hover { transform: translateY(-4px) rotate(-0.4deg); box-shadow: var(--shadow-h); text-decoration: none; }
.vcard-cat { font-size: 12px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--green); }
.vcard-t { font-family: var(--f-head); font-weight: 700; font-size: 20px; color: var(--brown); }
.vcard-d { font-size: 14px; color: var(--muted); flex: 1; }
.vcard-s { font-family: var(--f-num); font-size: 18px; color: var(--red); }
.vcard-s span { font-family: var(--f-text); font-size: 12px; color: var(--muted); }
.vcard-go { font-weight: 600; font-size: 14px; color: var(--red); }

/* Чипы городов */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--card); border: 1.5px solid var(--cream-2); border-radius: 999px;
  padding: 8px 16px; font-size: 14px; color: var(--ink);
  transition: border-color 0.15s, transform 0.15s;
}
.chip:hover { border-color: var(--orange); transform: translateY(-1px); text-decoration: none; color: var(--red); }
.chip-okrug { border-color: var(--brown); font-weight: 600; }

/* Поиск города */
.city-search { position: relative; max-width: 460px; margin-bottom: 8px; }
.city-search input {
  width: 100%; padding: 14px 18px; font-size: 16px; font-family: inherit;
  border: 2px solid var(--brown); border-radius: 14px; background: #fff;
}
.city-drop {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20;
  background: #fff; border: 2px solid var(--brown); border-radius: 14px;
  max-height: 260px; overflow: auto; display: none; box-shadow: var(--shadow-h);
}
.city-drop.on { display: block; }
.city-drop a { display: block; padding: 10px 16px; color: var(--ink); }
.city-drop a:hover { background: var(--cream); text-decoration: none; }

/* Фичи «Почему мы» */
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.feat { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feat-n {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--orange); color: #fff; font-family: var(--f-num);
  display: grid; place-items: center; margin-bottom: 12px;
}
.feat h3 { font-size: 18px; margin-bottom: 6px; }
.feat p { font-size: 14px; color: var(--muted); }
.bonus {
  margin-top: 20px; padding: 18px 22px; border-radius: var(--radius);
  background: #fff3d6; border: 2px dashed var(--yellow); font-size: 15px;
}

/* Списки с галочками */
.ticks { list-style: none; }
.ticks li { position: relative; padding: 8px 0 8px 34px; border-bottom: 1px dashed var(--cream-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3"><path d="M4 12l5 5L20 7"/></svg>') center/12px no-repeat;
}
.ticks-req li::before { background-color: var(--orange); }
.sec-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* Калькулятор */
.calc-box { background: var(--card); border: 2px solid var(--brown); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.calc-box label { display: block; font-weight: 600; margin-bottom: 10px; }
.calc-box input[type="range"] { width: 100%; accent-color: var(--red); height: 32px; }
.calc-out { margin-top: 10px; font-size: 18px; }
.calc-out b { font-family: var(--f-num); color: var(--red); font-size: 24px; }

/* Степпер */
.steps { list-style: none; counter-reset: st; display: grid; gap: 12px; margin-bottom: 20px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); }
.step-n {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--red); color: #fff; font-family: var(--f-num); font-size: 14px;
  display: grid; place-items: center;
}
.steps p { padding-top: 3px; }

/* Таблицы */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.tbl th { background: var(--brown); color: var(--cream); font-family: var(--f-head); font-weight: 600; text-align: left; padding: 12px 16px; font-size: 14px; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--cream); font-size: 15px; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl a { white-space: nowrap; }
.tbl-cities td b { font-weight: 600; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq-i { background: var(--card); border: 2px solid var(--cream-2); border-radius: 14px; overflow: hidden; }
.faq-i summary {
  list-style: none; cursor: pointer; padding: 16px 48px 16px 18px;
  font-family: var(--f-head); font-weight: 600; font-size: 16px; color: var(--brown);
  position: relative;
}
.faq-i summary::-webkit-details-marker { display: none; }
.faq-i summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--orange); transition: transform 0.2s;
}
.faq-i[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { padding: 0 18px 16px; color: #4a3527; }

/* Отзывы */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.review { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border-left: 4px solid var(--orange); }
.review p { font-style: italic; margin-bottom: 10px; }
.review footer { font-size: 14px; color: var(--muted); }

/* Фильтры */
.filters { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.fbtn {
  border: 2px solid var(--brown); background: transparent; color: var(--brown);
  border-radius: 999px; padding: 8px 18px; font-family: var(--f-head); font-weight: 600;
  font-size: 14px; cursor: pointer; transition: all 0.15s;
}
.fbtn.on, .fbtn:hover { background: var(--brown); color: var(--cream); }

/* Полоса «о компании» */
.about-strip { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: center; }
.about-strip img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-strip h2 { margin-top: 8px; }
.about-strip p { margin-bottom: 12px; color: #4a3527; }

/* CTA */
.cta {
  margin: 30px auto 50px; max-width: 1140px; padding: 30px;
  background: var(--brown); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta h2 { color: var(--cream); margin-bottom: 6px; }
.cta p { color: var(--cream-2); }
.cta .btn { background: var(--orange); box-shadow: 0 3px 0 #b85c17; }
.cta .btn:hover { box-shadow: 0 5px 0 #b85c17; }

/* Формы */
.form { display: grid; gap: 14px; }
.form-ok { font-size: 17px; color: #0e5f31; font-weight: 500; }
.form-err { font-size: 17px; color: var(--red); }
.form label, .fstep label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--brown); }
.form input, .form textarea, .fstep input, .fstep select {
  padding: 12px 14px; font-size: 16px; font-family: inherit;
  border: 2px solid var(--cream-2); border-radius: 12px; background: #fff;
}
.form input:focus, .form textarea:focus, .fstep input:focus, .fstep select:focus { outline: none; border-color: var(--orange); }
.chk { display: flex !important; flex-direction: row; align-items: center; gap: 10px; font-weight: 400 !important; }
.chk input { width: 18px; height: 18px; }

.form-card {
  max-width: 560px; margin: 0 auto 60px; background: var(--card);
  border: 2px solid var(--brown); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-h);
}
.progress { height: 8px; background: var(--cream-2); border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--orange), var(--red)); border-radius: 99px; transition: width 0.3s; }
.progress-label { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.fstep { display: none; border: 0; }
.fstep.on { display: grid; gap: 14px; }
.fstep h2 { font-size: 22px; }
.frow { display: flex; gap: 12px; justify-content: space-between; }
.field-err { border-color: var(--red) !important; }

/* Документ */
.doc h2 { font-size: 20px; margin-top: 22px; }
.doc p { color: #4a3527; }

/* Футер */
.site-footer { background: var(--brown); color: var(--cream); margin-top: 40px; padding: 44px 0 26px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 26px; }
.foot-h { font-family: var(--f-head); font-weight: 700; margin-bottom: 12px; color: var(--yellow); }
.foot-col a { display: block; color: var(--cream); font-size: 14px; padding: 4px 0; opacity: 0.9; }
.foot-col a:hover { opacity: 1; color: var(--yellow); }
.foot-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(245, 235, 220, 0.25); }
.foot-copy { font-size: 14px; font-weight: 600; color: var(--cream); }
.foot-legal { font-size: 12px; line-height: 1.65; opacity: 0.65; margin-top: 10px; }
.foot-req { font-size: 13px; line-height: 1.6; opacity: 0.85; margin-top: 8px; }

/* Cookie */
.cookie {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  background: var(--card); border: 2px solid var(--brown); border-radius: 14px;
  padding: 14px 18px; box-shadow: var(--shadow-h);
  display: none; align-items: center; gap: 14px; font-size: 14px; max-width: 420px;
}
.cookie.on { display: flex; }

/* Анимации при скролле */
.sec, .vcard, .feat { animation: none; }
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .rise.in { opacity: 1; transform: none; }

  /* Главная: hero-фото «парит» + лёгкий параллакс за курсором (--mx/--my из main.js) */
  @keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }
  .hero .hero-img {
    transform: perspective(900px)
      rotateY(calc(var(--mx, 0) * 4deg))
      rotateX(calc(var(--my, 0) * -3deg))
      translate3d(calc(var(--mx, 0) * 8px), calc(var(--my, 0) * 5px), 0);
    transition: transform 0.3s ease-out;
    will-change: transform;
  }
  .hero .hero-img img { animation: heroFloat 7s ease-in-out infinite; }
}

/* Мобильная адаптация */
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-img { order: -1; }
  .hero-img img { max-height: 260px; object-fit: cover; width: 100%; }
  .sec-2col, .about-strip { grid-template-columns: 1fr; }
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; background: var(--cream); padding: 16px 20px;
    border-bottom: 2px solid var(--brown); gap: 10px;
  }
  .main-nav.on { display: flex; }
  .nav-toggle { display: block; margin-left: auto; }
  .header-in .btn-small { display: none; }
  .cta { padding: 22px; }
  h1 { font-size: clamp(30px, 9vw, 44px); }
}
