/* ============ WorkinsonS — main stylesheet ============ */
:root {
  --bg: #07090f;
  --bg-soft: #0c1018;
  --bg-card: #11161f;
  --bg-card-hover: #161c27;
  --line: #1e2633;
  --text: #e8ecf3;
  --text-dim: #9aa5b5;
  --accent: #4f7cff;
  --accent-light: #7da0ff;
  --accent-dark: #3a5fd1;
  --gold: #f0b74a;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, .45);
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

h1, h2, h3, h4 {
  font-family: 'Oswald', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.25;
}

.section { padding: 90px 0; }

.section__title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 18px;
}
.section__title--left { text-align: left; }

.section__lead {
  max-width: 680px;
  margin: 0 auto 50px;
  text-align: center;
  color: var(--text-dim);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s, background .2s, border-color .2s, color .2s, box-shadow .2s;
  font-family: inherit;
  text-align: center;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 24px rgba(79, 124, 255, .35);
}
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn--ghost {
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-light); }
.btn--small { padding: 10px 24px; font-size: .88rem; background: var(--accent); color: #fff; }
.btn--small:hover { background: var(--accent-dark); }
.btn--full { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(7, 9, 15, .72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.header.scrolled { background: rgba(7, 9, 15, .94); border-bottom-color: var(--line); }

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo { display: flex; align-items: center; gap: 10px; color: var(--accent-light); }
.logo__icon { width: 40px; height: 40px; flex-shrink: 0; }
.logo__text {
  font-family: 'Oswald', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: #fff;
}
.logo__accent { color: var(--accent); }

.nav { display: flex; gap: 26px; align-items: center; }
.nav__link {
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .2s;
  position: relative;
  padding: 6px 0;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .25s;
}
.nav__link:hover, .nav__link.active { color: #fff; }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }
.nav__link--cta {
  color: var(--accent-light);
  border: 1px solid var(--accent);
  padding: 8px 16px;
  border-radius: 8px;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: var(--accent); color: #fff; }

.header__right { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.lang-switch__btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font: 600 .8rem 'Inter', sans-serif;
  padding: 7px 11px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.lang-switch__btn:hover { color: #fff; }
.lang-switch__btn.active { background: var(--accent); color: #fff; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(79, 124, 255, .22), transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(33, 48, 90, .55), transparent 65%),
    var(--bg);
}
.hero__rays {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg,
    transparent 0px, transparent 38px,
    rgba(120, 150, 230, .045) 38px, rgba(120, 150, 230, .045) 40px);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  animation: raysDrift 24s linear infinite;
}
@keyframes raysDrift {
  from { background-position: 0 0; }
  to   { background-position: 160px 0; }
}
.hero__content { position: relative; z-index: 1; padding: 120px 0 80px; }
.hero__since {
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: .8rem;
  color: var(--accent-light);
  margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(2.2rem, 6.5vw, 4.4rem);
  color: #fff;
  text-shadow: 0 0 50px rgba(79, 124, 255, .5);
  margin-bottom: 20px;
}
.hero__subtitle {
  max-width: 640px;
  margin: 0 auto 38px;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-dim);
}
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: 14px;
  z-index: 1;
}
.hero__scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--accent-light);
  border-radius: 2px;
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60%      { transform: translateY(12px); opacity: 0; }
}

/* ---------- Stats ---------- */
.stats {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
  padding: 48px 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats__num, .stats__plus {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--accent);
}
.stats__label { color: var(--text-dim); font-size: .9rem; margin-top: 4px; }

/* ---------- Vacancies ---------- */
.vacancies__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.vacancy-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.vacancy-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.vacancy-card__img { position: relative; aspect-ratio: 16/10; background: var(--bg-soft); }
.vacancy-card__img img { width: 100%; height: 100%; object-fit: cover; }
.vacancy-card__badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--gold);
  color: #1a1405;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: 6px;
}
.vacancy-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.vacancy-card__body h3 { font-size: 1.05rem; color: #fff; }
.vacancy-card__body p { font-size: .88rem; color: var(--text-dim); flex: 1; }
.vacancy-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.vacancy-card__salary { color: var(--gold); font-weight: 700; font-size: .95rem; }
.vacancy-card__loc { color: var(--text-dim); font-size: .85rem; }

/* ---------- About ---------- */
.about { background: var(--bg-soft); border-block: 1px solid var(--line); }
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.about__text p { margin-bottom: 16px; color: var(--text-dim); }
.about__text .btn { margin-top: 10px; }
.about__note {
  font-size: .85rem;
  border-left: 3px solid var(--accent);
  padding: 10px 16px;
  background: rgba(79, 124, 255, .07);
  border-radius: 0 8px 8px 0;
}
.about__img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Services ---------- */
.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 36px;
}
.service__img { min-height: 320px; background: var(--bg-soft); }
.service__img img { width: 100%; height: 100%; object-fit: cover; }
.service--reverse .service__img { order: 2; }
.service__body {
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.service__body h3 {
  font-size: 1.25rem;
  text-transform: uppercase;
  color: var(--accent);
}
.service__body p { color: var(--text-dim); font-size: .94rem; }

/* ---------- Steps ---------- */
.steps { background: var(--bg-soft); border-block: 1px solid var(--line); }
.steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 50px;
}
.steps__item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .25s, border-color .25s;
}
.steps__item:hover { transform: translateY(-5px); border-color: var(--accent); }
.steps__num {
  font-family: 'Oswald', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  display: block;
  margin-bottom: 12px;
}
.steps__item h3 { font-size: 1.05rem; margin-bottom: 8px; color: #fff; }
.steps__item p { font-size: .88rem; color: var(--text-dim); }

/* ---------- Countries ---------- */
.countries__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.country-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  transition: transform .25s, border-color .25s, background .25s;
}
.country-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  background: var(--bg-card-hover);
}
.country-card__flag { font-size: 2.6rem; display: block; margin-bottom: 14px; }
.country-card h3 { font-size: 1.1rem; color: var(--accent-light); margin-bottom: 10px; }
.country-card p { font-size: .88rem; color: var(--text-dim); }

/* ---------- Reviews ---------- */
.reviews { background: var(--bg-soft); border-block: 1px solid var(--line); }
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .25s, border-color .25s;
}
.review-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.review-card__stars { color: var(--gold); letter-spacing: 3px; font-size: 1.05rem; }
.review-card__text { font-size: .92rem; color: var(--text-dim); flex: 1; }
.review-card__author { display: flex; align-items: center; gap: 12px; }
.review-card__author img {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}
.avatar-fallback {
  width: 46px; height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  border: 2px solid var(--accent);
}
.review-card__name { display: block; font-weight: 600; font-size: .92rem; color: #fff; }
.review-card__role { display: block; font-size: .8rem; color: var(--text-dim); }

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact__info > p { color: var(--text-dim); margin-bottom: 28px; }
.contact__list { display: flex; flex-direction: column; gap: 18px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__icon { font-size: 1.3rem; line-height: 1.4; }
.contact__list a { color: var(--text); transition: color .2s; }
.contact__list a:hover { color: var(--accent-light); }

.contact__form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact__form label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 500; }
.contact__form input,
.contact__form select,
.contact__form textarea {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  font-size: .92rem;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 124, 255, .18);
}
.contact__form input.invalid { border-color: #e2574f; }
.contact__form textarea { resize: vertical; }
.form-privacy { font-size: .76rem; color: var(--text-dim); text-align: center; }
.form-status { font-size: .9rem; text-align: center; min-height: 1.2em; }
.form-status.ok { color: #5ecf85; }
.form-status.err { color: #e2574f; }

/* ---------- Map ---------- */
.map { line-height: 0; border-block: 1px solid var(--line); }
.map iframe { filter: grayscale(.4) invert(.92) hue-rotate(185deg) contrast(.9); }

/* ---------- Footer ---------- */
.footer { background: #05070c; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr .8fr 1fr 1.1fr;
  gap: 40px;
  padding: 70px 0 50px;
}
.footer h4 {
  font-size: 1rem;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: .06em;
}
.footer__col p { font-size: .88rem; color: var(--text-dim); margin-bottom: 18px; }
.logo--footer { margin-bottom: 16px; }

.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background .2s, border-color .2s, transform .2s;
}
.socials a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; fill: var(--text); }
.socials a:hover svg { fill: #fff; }

.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a, .footer__contacts a { font-size: .9rem; color: var(--text-dim); transition: color .2s; }
.footer__nav a:hover, .footer__contacts a:hover { color: var(--accent-light); }
.footer__contacts { display: flex; flex-direction: column; gap: 10px; font-size: .9rem; color: var(--text-dim); }

.subscribe { display: flex; gap: 10px; }
.subscribe input {
  flex: 1;
  min-width: 0;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  font-size: .9rem;
}
.subscribe input:focus { outline: none; border-color: var(--accent); }
.subscribe .btn { padding: 12px 18px; font-size: .85rem; white-space: nowrap; }

.footer__bottom {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  font-size: .82rem;
  color: var(--text-dim);
}
.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer__legal { max-width: 520px; }

/* ---------- To top ---------- */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, background .2s;
  z-index: 90;
  box-shadow: 0 8px 24px rgba(79, 124, 255, .4);
}
.to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--accent-dark); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__rays, .hero__scroll span { animation: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .vacancies__grid { grid-template-columns: repeat(2, 1fr); }
  .countries__grid, .reviews__grid { grid-template-columns: repeat(2, 1fr); }
  .steps__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav { gap: 18px; }
}

@media (max-width: 860px) {
  .section { padding: 64px 0; }

  .burger { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #07090f;
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 20px;
    transform: translateY(-130%);
    transition: transform .3s ease;
    z-index: -1;
  }
  .nav.open { transform: translateY(0); }
  .nav__link { padding: 13px 4px; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__link--cta { border: none; padding: 13px 4px; text-align: left; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link--cta:hover { background: transparent; }
  .nav__link:last-child { border-bottom: none; }

  .about__grid, .contact__grid { grid-template-columns: 1fr; gap: 36px; }
  .about__img { order: -1; }
  .about__img img { max-height: 320px; }

  .service, .service--reverse { grid-template-columns: 1fr; }
  .service--reverse .service__img { order: 0; }
  .service__img { min-height: 220px; aspect-ratio: 16/9; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }

  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .vacancies__grid, .countries__grid, .reviews__grid, .steps__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 34px; padding: 50px 0 36px; }
  .subscribe { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .footer__bottom .container { flex-direction: column; }
  .map iframe { height: 280px; }
  .lang-switch__btn { padding: 6px 9px; }
  .logo__text { font-size: 1.1rem; }
}
