/* =========================================================
   HR YOU — landing styles
   Spacing scale: 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 96
   ========================================================= */

:root {
  --yellow: #f7d737;
  --yellow-dark: #e9c719;
  --ink: #111111;
  --text: #222222;
  --muted: #5a5a5a;
  --grey: #f2f2f2;
  --line: #d9d9d9;
  --white: #ffffff;

  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Montserrat", "Manrope", "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --section-y: 96px;
  --radius-lg: 32px;
  --radius-md: 20px;
  --header-h: 72px;
  --shadow: 0 12px 30px rgba(0, 0, 0, .08);
  --shadow-btn: 0 10px 22px rgba(0, 0, 0, .14);
}

@media (max-width: 960px) {
  :root { --section-y: 72px; --header-h: 64px; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; --section-y: 56px; --radius-lg: 24px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.center { display: flex; justify-content: center; margin-top: 48px; }
.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; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 200; padding: 8px 16px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* ---------- Typography ---------- */
.h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 24px;
}
.h2--center { text-align: center; margin-bottom: 56px; }
.section-lead { max-width: 720px; margin: -24px auto 0; text-align: center; color: var(--muted); }

@media (max-width: 600px) {
  .h2--center { margin-bottom: 36px; }
  body { font-size: 16px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 36px;
  border: 0; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 16px; line-height: 1.2;
  text-decoration: none; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--dark { background: var(--ink); color: #fff; box-shadow: var(--shadow-btn); }
.btn--dark:hover { background: #2a2a2a; }
.btn--yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 10px 22px rgba(247, 215, 55, .35); }
.btn--yellow:hover { background: var(--yellow-dark); }
.btn--light { background: #fbf3c6; color: var(--ink); box-shadow: var(--shadow-btn); }
.btn--light:hover { background: #fff; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  background: transparent;
  transition: background-color .25s ease, box-shadow .25s ease;
}
.header.is-scrolled { background: rgba(255, 255, 255, .96); box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 6px 20px rgba(0, 0, 0, .05); backdrop-filter: blur(8px); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.header__logo img { width: 128px; height: auto; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 28px; }
.nav__list a, .header__phone {
  font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink);
  white-space: nowrap; position: relative;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav__list a:hover::after { transform: scaleX(1); }
.header__phone { font-weight: 700; }
.nav__phone--mobile { display: none; }

.lang { display: flex; align-items: center; gap: 2px; }
.lang a {
  display: inline-grid; place-items: center; min-width: 36px; height: 32px; padding: 0 8px;
  border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink);
  transition: background-color .2s ease;
}
.lang a:hover { background: rgba(17, 17, 17, .08); }
.lang a[aria-current="page"] { background: var(--ink); color: #fff; }

.burger { display: none; width: 44px; height: 44px; margin-left: auto; padding: 10px; background: none; border: 0; }
.burger span { display: block; height: 2px; margin: 5px 0; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1120px) {
  .nav__list { gap: 20px; }
  .header__phone { display: none; }
}
@media (max-width: 960px) {
  .burger { display: block; margin-left: 8px; }
  .lang { margin-left: auto; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; margin: 0;
    background: #fff; box-shadow: 0 16px 30px rgba(0, 0, 0, .08);
    padding: 16px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding: 12px 0; font-size: 17px; border-bottom: 1px solid #eee; }
  .nav__list a::after { display: none; }
  .nav__phone--mobile { display: block; margin-top: 16px; font-weight: 700; font-size: 18px; text-decoration: none; }
  .header.menu-open { background: #fff; }
}

/* ---------- Hero ---------- */
.hero {
  --hero-text: min(620px, 46vw);
  --edge: max(var(--gutter), (100vw - var(--container)) / 2);
  position: relative; overflow: hidden;
  background: var(--yellow);
  padding-top: var(--header-h);
  min-height: min(820px, 100svh);
  display: flex; align-items: center;
}
.hero__inner { padding-block: 64px 96px; }
.hero__content { max-width: var(--hero-text); }
.hero__title, .hero__lead, .hero__actions { position: relative; z-index: 2; }
.hero__title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(34px, 3.9vw, 58px); line-height: 1.12; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 24px;
}
.hero__lead { font-size: 19px; line-height: 1.6; color: var(--ink); margin-bottom: 40px; min-height: 3.2em; }
.typed { font-weight: 700; }
.typed::after { content: "|"; margin-left: 2px; font-weight: 400; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__actions .btn { min-width: 210px; }

/* Desktop: the photo sits in its own column to the right of the text and never overlaps it */
.hero__media {
  position: absolute; z-index: 1;
  top: var(--header-h); bottom: 24px; right: 0;
  left: calc(var(--edge) + var(--hero-text) + 40px);
}
.hero__media img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }

/* Mobile: title → subtitle → photo → buttons */
@media (max-width: 960px) {
  .hero { min-height: 0; display: block; }
  .hero__inner { padding-block: 32px 48px; }
  .hero__content { max-width: none; }
  .hero__lead { font-size: 17px; margin-bottom: 24px; min-height: 0; }
  .hero__media { position: static; max-width: 620px; margin: 0 calc(var(--gutter) * -1) 32px auto; }
  .hero__media img { height: auto; }
}
@media (max-width: 600px) {
  .hero__actions .btn { flex: 1 1 100%; min-width: 0; }
}

/* ---------- About ---------- */
.about { position: relative; }
.about__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
/* grey decorative blob behind the video (as on the original site) */
.about__video { position: relative; isolation: isolate; }
.about__video::before {
  content: ""; position: absolute; z-index: -1;
  left: -22%; top: -20%; width: 104%; aspect-ratio: 753 / 686;
  background: url(/assets/img/decor/blob-grey.webp) no-repeat center / contain;
  pointer-events: none;
}
.about__text p { color: var(--text); }
.about__text p + p, .about__more p { margin-top: 16px; }
.about__more { margin-top: 16px; }
.link-more {
  margin-top: 16px; padding: 0; background: none; border: 0;
  font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 4px;
}
.about__cta { margin-top: 32px; }

.video {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  padding: 0; border: 0; border-radius: var(--radius-md); overflow: hidden;
  background: #000; box-shadow: var(--shadow);
}
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s ease; }
.video:hover img { opacity: 1; }
.video__play {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; transform: translate(-50%, -50%);
  background: #ff0000; border-radius: 14px;
}
.video__play::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%);
  border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #fff;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.about__text > * { position: relative; z-index: 1; } /* text always above the grey blob */

/* Mobile: heading → video → text */
@media (max-width: 960px) {
  .about__inner { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .about__text { display: contents; }
  .about__text .h2 { order: -1; }
  .about__video { margin-bottom: 32px; }
  .link-more { align-self: flex-start; }
  .about__cta { display: flex; justify-content: center; }
}

/* ---------- Services ---------- */
.services__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 32px; row-gap: 96px;
  padding-top: 72px;
}
.service {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--grey); border-radius: var(--radius-lg);
  padding: 120px 32px 40px;
}
.service__img {
  position: absolute; left: 50%; top: -72px; transform: translateX(-50%);
  width: 240px; height: 180px; object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .12));
}
.service__title {
  font-family: var(--font-head); font-weight: 700; font-size: 21px; line-height: 1.3;
  color: var(--ink); margin-bottom: 20px; max-width: 260px;
}
.service__list { margin-bottom: 32px; }
.service__list li { font-size: 16px; line-height: 1.45; }
.service__list li + li::before { content: "—"; display: block; margin: 6px 0; color: #b5b5b5; }
.service__text { font-size: 16px; line-height: 1.55; margin-bottom: 32px; }
.service__btn { margin-top: auto; }

.service--form { background: var(--yellow); }
.service--form .lead-form { width: 100%; }

@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .services__grid { grid-template-columns: 1fr; row-gap: 88px; padding-top: 64px; }
  .service { padding: 112px 24px 32px; }
  .service__img { width: 220px; height: 165px; top: -64px; }
}

/* ---------- Forms ---------- */
.lead-form { display: grid; gap: 16px; text-align: left; }
.field input {
  width: 100%; height: 56px; padding: 0 24px;
  background: #fff; border: 1px solid transparent; border-radius: 999px;
  font-size: 16px; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder { color: #8a8a8a; }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 17, 17, .08); }
.field input[aria-invalid="true"] { border-color: #d62f2f; }
.field--boxed input { border-radius: 12px; border-color: #cfcfcf; }
.form-note { font-size: 13px; line-height: 1.45; color: var(--muted); text-align: center; }
.form-note a { color: inherit; }
.service--form .form-note { color: #3d3a2a; }
.form-error { font-size: 14px; color: #c62828; text-align: center; font-weight: 600; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Stats ---------- */
.stats { background: var(--grey); }
.stats__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.stat { text-align: center; }
.stat__num {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(44px, 5vw, 60px); line-height: 1; color: var(--yellow-dark);
  padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid #c8c8c8;
  font-variant-numeric: tabular-nums;
}
.stat__label { max-width: 320px; margin-inline: auto; font-size: 16px; }

@media (max-width: 760px) {
  .stats__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Advantages ---------- */
.advantages { background: var(--grey); padding-top: 0; }
.adv__grid { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 56px; margin-inline: -16px; }
.adv { flex: 0 0 25%; padding-inline: 16px; text-align: center; }
.adv__icon { position: relative; display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 20px; }
.adv__icon::before {
  content: ""; position: absolute; right: -4px; bottom: 2px; width: 46px; height: 42px;
  background: var(--yellow); border-radius: 58% 42% 55% 45% / 50% 60% 40% 50%;
}
.adv__icon img { position: relative; width: 56px; height: 56px; }
.adv__title { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.adv p { font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 240px; margin-inline: auto; }

@media (max-width: 960px) { .adv { flex-basis: 33.333%; } }
@media (max-width: 640px) { .adv { flex-basis: 50%; } .adv__grid { row-gap: 40px; } }
@media (max-width: 400px) { .adv { flex-basis: 100%; } }

/* ---------- HR School ---------- */
.school__sub { text-align: center; font-weight: 700; margin: 32px 0 32px; }
.school__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.course {
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 16px;
  padding: 28px 16px; border-radius: var(--radius-md);
  background: var(--grey); text-align: center; text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: 15px; line-height: 1.35; color: var(--ink);
  transition: background-color .2s ease, transform .2s ease;
}
.course img { width: 48px; height: 48px; }
.course:hover { background: var(--yellow); transform: translateY(-3px); }

@media (max-width: 1024px) { .school__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .school__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .course { padding: 20px 12px; font-size: 14px; } }

/* ---------- Clients ---------- */
.clients__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.clients__grid li {
  display: grid; place-items: center; height: 104px; padding: 12px 16px;
  background: #fff; border: 1px solid #ececec; border-radius: 16px;
}
.clients__grid img { max-height: 76px; width: auto; max-width: 100%; object-fit: contain; }

@media (max-width: 1024px) { .clients__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .clients__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .clients__grid li { height: 88px; } .clients__grid img { max-height: 52px; } }

/* ---------- Cases ---------- */
.cases { position: relative; overflow: hidden; background: var(--grey); }
.cases .container { position: relative; z-index: 1; }
.cases .h2 { position: relative; z-index: 2; }
.cases__grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
/* yellow decorative blobs behind the case cards (as on the original site) */
.cases__blob { position: absolute; z-index: 0; pointer-events: none; height: auto; }
.cases__blob--left { left: -80px; top: 42%; width: 300px; transform: scaleX(-1); }
.cases__blob--right { right: -90px; top: -84px; width: 360px; }
.case {
  position: relative; z-index: 1;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 40px 32px; text-align: center;
}
.case__logo { height: 56px; width: auto; max-width: 220px; object-fit: contain; margin: 0 auto 28px; }
.case p { font-size: 16px; line-height: 1.6; }
.case p + p { margin-top: 12px; }

@media (max-width: 960px) {
  .cases__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; background: var(--yellow); padding-block: var(--section-y); }
.contact__inner { display: grid; grid-template-columns: 1fr 440px; gap: 64px; align-items: center; }
.contact__text { max-width: 520px; }
.contact__text .h2 { margin-bottom: 24px; }
.contact__text p { font-size: 18px; color: var(--ink); }
.contact__card { background: #fff; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.contact__title { font-family: var(--font-head); font-weight: 700; font-size: 20px; text-align: center; color: var(--ink); margin-bottom: 24px; }
.contact__card .field input { background: var(--grey); }

@media (max-width: 960px) {
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .contact__card { padding: 32px 24px; }
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #fff; padding-block: 64px 48px; }
.footer__inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 48px; align-items: start; }
.footer__logo { width: 150px; filter: invert(1); margin-bottom: 16px; }
.footer__brand p { font-size: 15px; }
.footer__copy { margin-top: 16px; color: #8c8c8c; font-size: 13px !important; }
.footer__mid { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.footer__social img { width: 40px; height: 40px; transition: opacity .2s ease; }
.footer__social:hover img { opacity: .7; }
.footer__link { font-size: 14px; color: #fff; text-underline-offset: 4px; }
.footer__contacts { justify-self: end; }
.footer__contacts h3 { font-family: var(--font-head); font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.footer__contacts li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.footer__contacts li + li { margin-top: 12px; }
.footer__contacts img { width: 20px; height: 20px; }
.footer__contacts a { text-decoration: none; }
.footer__contacts a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__mid { align-items: flex-start; }
  .footer__contacts { justify-self: start; }
}

/* ---------- Modal ---------- */
.modal {
  width: min(520px, calc(100vw - 32px));
  padding: 48px 40px 40px; border: 0; border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
}
.modal::backdrop { background: rgba(17, 17, 17, .55); backdrop-filter: blur(2px); }
.modal[open] { animation: modal-in .22s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } }
.modal__title { font-family: var(--font-head); font-weight: 700; font-size: 28px; line-height: 1.2; text-align: center; color: var(--ink); margin-bottom: 28px; }
.modal__close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px;
  border: 0; background: none; font-size: 32px; line-height: 1; color: #777; border-radius: 50%;
}
.modal__close:hover { background: var(--grey); color: var(--ink); }
@media (max-width: 600px) { .modal { padding: 48px 20px 28px; } .modal__title { font-size: 24px; } }

/* ---------- Simple pages (privacy / thanks / 404) ---------- */
.page-header { position: sticky; top: 0; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .06); z-index: 10; }
.page-header .header__inner { height: var(--header-h); }
.page-header__back { margin-left: auto; font-weight: 600; font-size: 15px; text-decoration: none; }
.page-header__back:hover { text-decoration: underline; }

.legal { padding-block: 64px var(--section-y); }
.legal .container { max-width: calc(800px + var(--gutter) * 2); }
.legal h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(28px, 4vw, 40px); line-height: 1.2; color: var(--ink); margin-bottom: 16px; }
.legal__meta { color: var(--muted); font-size: 15px; margin-bottom: 40px; }
.legal h2 { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--ink); margin: 40px 0 16px; }
.legal p { margin-bottom: 12px; font-size: 16px; line-height: 1.7; }
.legal a { text-underline-offset: 3px; }

.thanks { background: var(--yellow); min-height: calc(100svh - 280px); display: grid; place-items: center; text-align: center; padding-block: 120px 96px; }
.thanks h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(44px, 7vw, 80px); line-height: 1.05; color: var(--ink); margin-bottom: 24px; }
.thanks p { font-size: 18px; color: var(--ink); margin-bottom: 40px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.page-header .lang { margin-left: 0; }
