/* Сайт карьерного консультанта. Сначала мобильный (360–430), потом 768 и 1280+. */
:root {
  --milk: #F8F5F0;
  --white: #FFFFFF;
  --graphite: #1C1B1A;
  --text: #1C1B1A;
  --text-2: #3D3A36;
  --text-2-dark: #CFC9C1;
  --muted: #6E6860;
  --red: #D33A2F;
  --red-text: #C7352B;
  --red-text-dark: #F07A6F;
  --red-hover: #B8322A;
  --powder: #F3D3CF;
  --line: #E6E0D7;
  --line-2: #D9D1C6;
  --error: #B8322A;
  --chip: #F3EEE7;
  --placeholder: #E9E1D6;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --sans: "Golos Text", Arial, sans-serif;
  --gutter: 24px;
  --block: 52px;
  --radius-xl: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--milk);
  color: var(--text);
  font: 400 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--red-text); }
a:hover { color: #9E2A22; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: 1248px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Метка → заголовок → черта */
.label {
  font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red-text);
}
.label--dark { color: var(--red-text-dark); }
.label--light { color: #FFE3DF; }
.h1 { font-size: 42px; line-height: 1.04; letter-spacing: -.01em; }
.h2 { font-size: 32px; line-height: 1.1; }
.dash { width: 56px; height: 4px; border-radius: 2px; background: var(--red); }

/* Кнопки-пилюли */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px;
  font: 600 16px/1.2 var(--sans); text-decoration: none; text-align: center;
  cursor: pointer; transition: background .15s, color .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-hover); color: var(--white); }
.btn--white { background: var(--white); color: var(--red-hover); font-weight: 700; }
.btn--white:hover { background: #FFF1EE; color: var(--red-hover); }
.btn--dark { background: var(--graphite); color: var(--milk); }
.btn--dark:hover { background: #33312E; color: var(--milk); }
.btn--milk { background: var(--milk); color: var(--graphite); }
.btn--milk:hover { background: var(--white); color: var(--graphite); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--lg { min-height: 56px; font-size: 17px; }

.link-arrow {
  display: inline-block; padding: 10px 0; background: none; border: 0;
  font: 500 16px/1.3 var(--sans); color: var(--red-text); text-decoration: none; cursor: pointer;
}
.link-arrow:hover { color: #9E2A22; }
.link-arrow--white { color: var(--white); }
.link-arrow--white:hover { color: #FFE3DF; }

/* Шапка */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(248, 245, 240, .96);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__in { height: 64px; display: flex; align-items: center; gap: 10px; padding-left: 16px; padding-right: 12px; }
.logo { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-decoration: none; color: var(--text); }
.logo:hover { color: var(--text); }
.logo__mark {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--red); color: var(--white); font: 700 22px/1 var(--serif);
}
.logo__name { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.burger {
  width: 44px; height: 44px; flex-shrink: 0; padding: 0; border: 0; background: transparent;
  display: flex; align-items: center; justify-content: center; color: var(--text); cursor: pointer;
}
.burger__close { display: none; }
.header.is-open .burger__open { display: none; }
.header.is-open .burger__close { display: inline; }
.nav {
  display: none; position: absolute; left: 0; right: 0; top: 64px;
  flex-direction: column; gap: 4px; padding: 12px 16px 20px;
  background: var(--milk); border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 24px rgba(28, 27, 26, .08);
}
.header.is-open .nav { display: flex; }
.nav__link {
  padding: 14px 18px; border-radius: 999px; font-size: 17px; font-weight: 500;
  color: var(--text); text-decoration: none;
}
.nav__link:hover { color: var(--text); background: var(--chip); }
.nav__link.is-active { background: var(--graphite); color: var(--milk); }

/* Первый экран */
.hero { display: flex; flex-direction: column-reverse; gap: 28px; padding-top: 28px; padding-bottom: var(--block); }
.hero__text { display: flex; flex-direction: column; gap: 18px; }
.hero__name { font-size: 46px; line-height: 1.0; letter-spacing: -.01em; }
.hero__tagline { font-size: 18px; line-height: 1.45; color: var(--text-2); }
.hero__actions { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin-top: 6px; }
.hero__actions .link-arrow { align-self: center; }
.hero__photo { position: relative; height: 380px; margin-top: 6px; }
.photo { position: absolute; inset: 0; border-radius: var(--radius-xl); overflow: hidden; background: var(--placeholder); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.sticker { position: absolute; box-shadow: 0 6px 18px rgba(28, 27, 26, .18); }
.sticker--round {
  right: -8px; top: -14px; width: 112px; height: 112px; border-radius: 50%;
  background: var(--red); color: var(--white); transform: rotate(8deg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.sticker__big { font: 700 32px/1 var(--serif); }
.sticker__small { margin-top: 4px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.sticker--pill {
  left: -6px; bottom: 64px; padding: 10px 16px; border-radius: 999px;
  background: var(--graphite); color: var(--milk); font-size: 14px; font-weight: 500;
  transform: rotate(-5deg); box-shadow: none;
}

/* О себе */
.about { background: var(--graphite); color: var(--milk); }
.about__in { display: flex; flex-direction: column; gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.about__text { display: flex; flex-direction: column; gap: 20px; }
.about__text p { font-size: 17px; line-height: 1.55; color: var(--text-2-dark); }
.about .h2 { font-size: 34px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.fact { border: 1px solid #3A3835; border-radius: 20px; padding: 18px 16px; }
.fact__num { font: 700 36px/1.05 var(--serif); color: var(--white); }
.fact__label { margin-top: 6px; font-size: 14px; line-height: 1.35; color: var(--text-2-dark); }

/* С чем приходят */
.requests { display: flex; flex-direction: column; gap: 20px; padding-top: 56px; padding-bottom: 56px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { padding: 12px 18px; border-radius: 999px; font-size: 16px; font-weight: 500; line-height: 1.2; }
.pill--red { background: var(--red); color: var(--white); }
.pill--dark { background: var(--graphite); color: var(--milk); }
.pill--outline { background: var(--white); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--graphite); }
.pill--pink { background: var(--powder); color: var(--text); }

/* Финальный призыв — единственный градиент */
.cta {
  margin: 0 -8px var(--block); padding: 48px 24px; border-radius: var(--radius-xl);
  background: linear-gradient(160deg, #A8352E 0%, #D8473B 55%, #E66A5E 100%); color: var(--white);
  display: flex; flex-direction: column; gap: 24px;
}
.cta__text { display: flex; flex-direction: column; gap: 16px; }
.cta .h2 { font-size: 34px; line-height: 1.08; }
.cta p { font-size: 17px; color: #FFF1EE; }
.cta__actions { display: flex; flex-direction: column; gap: 4px; }
.cta__actions .link-arrow { align-self: center; }

/* Услуги */
.intro { display: flex; flex-direction: column; gap: 16px; padding-top: 36px; padding-bottom: 28px; }
.intro__text { font-size: 17px; line-height: 1.5; color: var(--text-2); max-width: 640px; }
.cards { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 0 -8px 40px; }
.card {
  background: var(--white); border-radius: var(--radius-xl); padding: 24px 20px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: 0 1px 0 var(--line);
}
.card__head { display: flex; align-items: center; gap: 12px; }
.badge {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font: 700 22px/1 var(--serif);
}
.badge--red { background: var(--red); color: var(--white); }
.badge--dark { background: var(--graphite); color: var(--milk); }
.badge--pink { background: var(--powder); color: var(--text); }
.card__title { font-size: 26px; line-height: 1.1; }
.card__label { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-text); }
.card__who { margin-top: -6px; font-size: 17px; line-height: 1.45; }
.card__list { margin: -6px 0 0; padding-left: 20px; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 8px 14px; border-radius: 999px; background: var(--chip); font-size: 14px; font-weight: 500; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.card__price { font: 700 30px/1.1 var(--serif); }

.help {
  margin: 0 -8px var(--block); padding: 32px 24px; border-radius: var(--radius-xl);
  background: var(--graphite); color: var(--milk); display: flex; flex-direction: column; gap: 14px;
}
.help__title { font-size: 28px; line-height: 1.1; }
.help p { color: var(--text-2-dark); }

/* Юридические страницы */
.legal { max-width: 820px; padding-top: 36px; padding-bottom: var(--block); }
.legal__title { margin-top: 14px; font-size: 32px; line-height: 1.12; }
.legal__date { margin-top: 10px; font-size: 15px; color: var(--muted); }
.legal__toc { margin: 28px 0 8px; padding: 20px 22px; background: var(--white); border-radius: 20px; box-shadow: 0 1px 0 var(--line); }
.legal__toc-title { font-weight: 700; margin-bottom: 8px; }
.legal__toc ol { margin: 0; padding-left: 20px; line-height: 1.7; }
.legal__toc a { text-decoration: none; }
.legal__body { font-size: 17px; line-height: 1.6; color: var(--text-2); }
.legal__body h2 { margin: 36px 0 12px; font-size: 24px; line-height: 1.2; color: var(--text); }
.legal__body h3 { margin: 24px 0 8px; font: 700 18px/1.3 var(--sans); color: var(--text); }
.legal__body p, .legal__body ul, .legal__body ol { margin: 0 0 14px; }
.legal__body li { margin-bottom: 6px; }

/* 404 */
.notfound { display: flex; flex-direction: column; gap: 18px; padding-top: 48px; padding-bottom: 72px; max-width: 760px; }
.notfound__mark {
  width: 120px; height: 120px; border-radius: 50%; background: var(--red); color: var(--white);
  display: flex; align-items: center; justify-content: center; font: 700 40px/1 var(--serif);
  transform: rotate(-6deg); margin-bottom: 8px;
}

/* Подвал */
.footer { background: var(--graphite); color: var(--text-2-dark); font-size: 14px; }
.footer__in { display: flex; flex-direction: column; gap: 18px; padding-top: 36px; padding-bottom: 32px; }
.footer__socials { display: flex; gap: 12px; }
.social {
  width: 44px; height: 44px; border-radius: 50%; background: #2E2C2A; color: var(--milk);
  display: flex; align-items: center; justify-content: center;
}
.social:hover { background: var(--red); color: var(--white); }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { color: var(--milk); }
.footer__links a:hover { color: var(--red-text-dark); }
.footer__req { line-height: 1.5; }

/* Попап записи: на мобильном на весь экран */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(28, 27, 26, .55); }
.modal__box {
  position: relative; width: 100%; height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--milk); display: flex; flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}
.modal__top { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 0 24px; }
.modal__close {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: #EDE6DC; color: var(--text);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.modal__close:hover { background: var(--line-2); }

.zform { padding: 8px 24px 28px; display: flex; flex-direction: column; gap: 16px; }
.zform__title { font-size: 34px; line-height: 1.08; }
.zform__lead { margin-top: -6px; font-size: 16px; line-height: 1.45; color: var(--text-2); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.field__opt { font-weight: 400; font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--white);
  color: var(--text); font: 400 16px/1.4 var(--sans); -webkit-appearance: none; appearance: none;
}
.field input, .field select { height: 52px; padding: 0 16px; }
.field select {
  padding-right: 44px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231C1B1A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.field textarea { padding: 12px 16px; resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--graphite); }
.field.has-error input, .field.has-error select { border-color: var(--error); }
.field__err { font-size: 14px; color: var(--error); }
.field__err:empty { display: none; }
.field__err--all { text-align: center; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--text-2); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn--submit { min-height: 56px; font-size: 17px; background: var(--red); color: var(--white); }
.btn--submit:hover { background: var(--red-hover); }
.btn--submit:disabled { background: #E3DCD2; color: var(--muted); cursor: not-allowed; transform: none; }
.btn--submit.is-loading { opacity: .7; pointer-events: none; }
.zform__note { margin-top: -6px; font-size: 13px; line-height: 1.45; color: var(--muted); text-align: center; }

.thanks { flex: 1; padding: 24px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.thanks__mark {
  width: 120px; height: 120px; border-radius: 50%; background: var(--red);
  display: flex; align-items: center; justify-content: center; transform: rotate(-6deg);
}
.thanks__title { font-size: 38px; line-height: 1.05; }
.thanks__text { font-size: 18px; line-height: 1.5; color: var(--text-2); }
.thanks__back { align-self: center; }

/* Плашка cookies */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
  display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 18px;
  background: var(--white); border-radius: 20px; box-shadow: 0 8px 30px rgba(28, 27, 26, .18);
  font-size: 14px; line-height: 1.4; color: var(--text-2);
}
.cookie p { flex: 1; }

/* Планшет */
@media (min-width: 768px) {
  :root { --gutter: 32px; --block: 72px; }
  .h1 { font-size: 52px; }
  .h2 { font-size: 40px; }
  .label { font-size: 14px; letter-spacing: .2em; }
  .hero__name { font-size: 64px; }
  .hero__actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px; }
  .hero__actions .link-arrow { align-self: auto; }
  .hero__photo { height: 480px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-left: 0; margin-right: 0; }
  .cta, .help { margin-left: 0; margin-right: 0; }
  .cta { padding: 56px 48px; border-radius: 36px; }
  .help { padding: 40px 48px; border-radius: 36px; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .help__title { flex-basis: 100%; }
  .help p { flex: 1; }
  .footer__in { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px 48px; }
  .footer__req { flex-basis: 100%; }

  .modal { align-items: center; justify-content: center; padding: 24px; }
  .modal__box { width: 520px; height: auto; max-height: calc(100vh - 48px); border-radius: 32px; }
  .modal__top { padding: 20px 20px 0 32px; }
  .zform { padding: 8px 32px 32px; }
  .thanks { padding: 32px 32px 40px; }
  .cookie { left: auto; right: 24px; bottom: 24px; max-width: 460px; }
  .legal__title { font-size: 40px; }
}

/* Десктоп */
@media (min-width: 1024px) {
  body { font-size: 19px; }
  .header__in { height: 76px; gap: 32px; padding-left: var(--gutter); padding-right: var(--gutter); }
  .logo { flex: 0 0 auto; gap: 12px; }
  .logo__mark { width: 44px; height: 44px; font-size: 24px; }
  .logo__name { font-size: 17px; }
  .burger { display: none; }
  .nav {
    display: flex; position: static; flex-direction: row; gap: 8px; flex: 1;
    padding: 0; background: none; border: 0; box-shadow: none;
  }
  .nav__link { padding: 10px 16px; font-size: 16px; }
  .header .btn--sm { min-height: 48px; padding: 0 26px; font-size: 16px; }

  .hero { flex-direction: row; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 88px; }
  .hero__text { flex: 1 1 0; gap: 22px; }
  .hero__name { font-size: clamp(64px, 6vw, 84px); line-height: .98; letter-spacing: -.015em; }
  .hero__tagline { font-size: 22px; max-width: 560px; }
  .hero .dash { width: 72px; height: 5px; border-radius: 3px; }
  .hero .btn--lg { min-height: 60px; padding: 0 34px; font-size: 18px; }
  .hero__photo { flex: 0 0 44%; height: 540px; margin-top: 0; }
  .photo { border-radius: 36px; }
  .sticker--round { width: 140px; height: 140px; right: -16px; top: -20px; }
  .sticker__big { font-size: 42px; }
  .sticker__small { font-size: 14px; }
  .sticker--pill { left: -20px; bottom: 90px; padding: 12px 20px; font-size: 16px; }

  .about__in { flex-direction: row; gap: 56px; padding-top: 88px; padding-bottom: 88px; }
  .about__text { flex: 1 1 0; gap: 22px; }
  .about .h2 { font-size: clamp(40px, 3.6vw, 52px); line-height: 1.06; }
  .about__text p { font-size: 19px; line-height: 1.6; max-width: 640px; }
  .facts { flex: 0 0 38%; gap: 16px; }
  .fact { border-radius: 24px; padding: 24px; }
  .fact__num { font-size: 48px; }
  .fact__label { font-size: 15px; }

  .requests { padding-top: 88px; padding-bottom: 88px; gap: 24px; }
  .pill { font-size: 18px; padding: 14px 22px; }

  .cta { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 72px; margin-bottom: 88px; }
  .cta__text { flex: 1 1 0; }
  .cta .h2 { font-size: clamp(40px, 4vw, 56px); line-height: 1.04; }
  .cta p { font-size: 19px; }
  .cta__actions { flex: 0 0 280px; }
  .cta .btn--lg { min-height: 60px; font-size: 18px; }

  .intro { padding-top: 64px; padding-bottom: 40px; }
  .h1 { font-size: clamp(52px, 5vw, 72px); }
  .intro__text { font-size: 20px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 56px; }
  .card { padding: 28px 24px; }
  .card__title { font-size: 28px; }
  .help { margin-bottom: 88px; padding: 48px 56px; }
  .help__title { font-size: 36px; }

  .legal { padding-top: 56px; }
  .legal__body { font-size: 18px; }
}
