/* Apex Programmers - new homepage (standalone, no Bootstrap/jQuery needed) */

:root {
  --bg: #0b0b0b;
  --surface: #141414;
  --surface-2: #1b1b1b;
  --line: #272727;
  --text: #f4f4f4;
  --muted: #a6a6a6;
  --lime: #c9f31d;
  --lime-ink: #10140a;
  --light-bg: #f6f6f3;
  --light-text: #121212;
  --radius: 18px;
  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --section: clamp(72px, 10vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Kanit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--lime); color: var(--lime-ink); padding: 10px 16px; border-radius: 8px; font-weight: 500;
}
.skip:focus { top: 12px; }

/* ---------- shared bits ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.h2 { font-size: clamp(32px, 4.6vw, 60px); margin-top: 16px; }
.lead { color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); max-width: 60ch; }

.section-head {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 60px; align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 500; font-size: 16px; line-height: 1; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translate(3px, -3px); }
.btn-primary { background: var(--lime); color: var(--lime-ink); }
.btn-primary:hover { background: #d8ff3a; }
.btn-ghost { border-color: #3a3a3a; color: var(--text); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-dark { background: var(--lime-ink); color: #fff; }
.btn-dark:hover { background: #000; }

.arrow { width: 14px; height: 14px; flex: none; }

/* ---------- header ---------- */

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 11, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.header__logo img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { font-size: 16px; font-weight: 400; color: #d6d6d6; padding: 8px 0; transition: color .2s ease; }
.nav__links a:hover { color: var(--lime); }
.nav .btn { padding: 12px 20px; font-size: 15px; }

.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  background: transparent; border: 1px solid #3a3a3a; cursor: pointer; padding: 0;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.menu-btn span { width: 18px; height: 2px; background: #fff; transition: transform .2s ease, opacity .2s ease; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 120px) 0 0; }
.hero__bg {
  position: absolute; right: -8%; top: -12%; width: min(980px, 85vw); max-width: none;
  opacity: .55; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}
.hero__inner { position: relative; }

.hero__tag {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid #333; border-radius: 999px; padding: 8px 16px 8px 12px;
  font-size: 14px; font-weight: 400; color: #d9d9d9; background: rgba(20, 20, 20, .7);
}
.hero__tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(201, 243, 29, .18); }

.hero__title { font-size: clamp(44px, 8.4vw, 124px); font-weight: 600; letter-spacing: -0.03em; line-height: .98; margin-top: 28px; }
.hero__title em { font-style: normal; color: var(--lime); }

.hero__row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px 60px; align-items: end; margin-top: clamp(28px, 4vw, 48px); }
.hero__text { font-size: clamp(18px, 1.7vw, 22px); color: #cfcfcf; max-width: 46ch; }
.hero__text strong { font-weight: 500; color: #fff; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

.stats {
  position: relative; margin-top: clamp(48px, 7vw, 88px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat { padding: 28px 24px 34px 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat__num { display: block; font-size: clamp(36px, 4.6vw, 62px); font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.stat__label { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---------- marquee ---------- */

.marquee { background: var(--lime); color: var(--lime-ink); overflow: hidden; padding: 16px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__group { display: flex; flex: none; }
.marquee__group span {
  display: inline-flex; align-items: center; gap: 34px; padding-right: 34px;
  font-size: clamp(18px, 2vw, 24px); font-weight: 500; text-transform: uppercase; white-space: nowrap;
}
.marquee__group span::after { content: ""; width: 8px; height: 8px; background: currentColor; transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- services ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.card {
  position: relative; display: flex; flex-direction: column; min-height: 268px;
  padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .25s ease, border-color .25s ease, background-color .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--lime); background: var(--surface-2); }
.card__top { display: flex; align-items: center; justify-content: space-between; }
.card__num { font-size: 14px; font-weight: 400; color: #7d7d7d; letter-spacing: .08em; }
.card__go {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid #3a3a3a;
  display: grid; place-items: center; color: #fff;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.card:hover .card__go { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); transform: rotate(45deg); }
.card__title { font-size: 24px; margin-top: 30px; }
.card__text { margin-top: 12px; color: var(--muted); font-size: 16px; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 22px; }
.card__tags li { font-size: 13px; font-weight: 400; color: #c9c9c9; border: 1px solid #333; border-radius: 999px; padding: 3px 11px; }

.new-block {
  margin-top: 16px; padding: clamp(22px, 3vw, 36px); border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(201, 243, 29, .35);
  background: linear-gradient(180deg, rgba(201, 243, 29, .08), rgba(201, 243, 29, 0) 62%), var(--surface);
}
.new-block__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 32px; margin-bottom: 24px; }
.new-block__title { font-size: clamp(24px, 2.6vw, 34px); }
.new-block__note { color: var(--muted); max-width: 52ch; font-size: 16px; }
.new-block .cards { grid-template-columns: repeat(4, 1fr); }
.new-block .card { background: #101010; min-height: 300px; }
.new-block .card__title { font-size: 22px; }

.pill {
  font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  background: var(--lime); color: var(--lime-ink); border-radius: 999px; padding: 4px 11px;
}

/* ---------- about ---------- */

.about { border-top: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about__media { position: relative; padding: 0 12% 12% 0; }
.about__media img { border-radius: var(--radius); object-fit: cover; }
.about__img-1 { width: 100%; aspect-ratio: 4 / 5; }
.about__img-2 { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; border: 6px solid var(--bg); }
.about__badge {
  position: absolute; left: -14px; top: 28px;
  background: var(--lime); color: var(--lime-ink); border-radius: 14px; padding: 14px 18px; line-height: 1.15;
}
.about__badge b { display: block; font-size: 30px; font-weight: 600; }
.about__badge span { font-size: 13px; font-weight: 400; }
.about__copy p { color: #c4c4c4; margin-top: 22px; }
.about__copy .btn { margin-top: 32px; }

.checks { margin-top: 26px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: #e2e2e2; font-weight: 400; }
.checks svg { flex: none; width: 20px; height: 20px; margin-top: 4px; color: var(--lime); }

/* ---------- hire ---------- */

.hire__panel {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  background: var(--lime); color: var(--lime-ink);
  border-radius: clamp(20px, 3vw, 34px); padding: clamp(28px, 5vw, 68px);
}
.hire__panel .eyebrow { color: var(--lime-ink); }
.hire__panel p { margin-top: 18px; font-weight: 400; max-width: 46ch; }
.hire__panel .btn { margin-top: 28px; }
.hire__list { display: grid; gap: 12px; }
.hire__item {
  display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center;
  background: rgba(16, 20, 10, .08); border: 1px solid rgba(16, 20, 10, .16); border-radius: 16px; padding: 18px 22px;
}
.hire__item b { font-size: clamp(34px, 4vw, 50px); font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.hire__item h3 { font-size: 19px; }
.hire__item p { margin-top: 4px; font-size: 15px; font-weight: 300; max-width: none; }

/* ---------- process ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.step { padding: 32px 28px 38px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .25s ease; }
.step:hover { background: var(--surface); }
.step__num { font-size: 54px; font-weight: 600; line-height: 1; color: transparent; -webkit-text-stroke: 1px #4a4a4a; transition: color .25s ease; }
.step:hover .step__num { color: var(--lime); -webkit-text-stroke-color: var(--lime); }
.step h3 { font-size: 22px; margin-top: 26px; }
.step p { color: var(--muted); margin-top: 10px; font-size: 16px; }

/* ---------- work ---------- */

.work { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.work__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work__item { position: relative; overflow: hidden; border-radius: var(--radius); background: #222; aspect-ratio: 52 / 70; margin: 0; }
.work__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.work__item:hover img { transform: scale(1.04); }
.work__item figcaption {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(11, 11, 11, .86); color: #fff; border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 400;
}

/* ---------- brands ---------- */

.brands { background: var(--light-bg); color: var(--light-text); }
.brands .eyebrow { color: #4b5d00; }
.brands__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: clamp(32px, 4vw, 52px); }
.brands__item { background: #fff; border: 1px solid #e6e6e0; border-radius: 14px; display: grid; place-items: center; padding: 18px; min-height: 108px; }
.brands__item img { width: 92px; height: auto; }

/* ---------- cta ---------- */

.cta { text-align: center; }
.cta__title { font-size: clamp(36px, 6.2vw, 88px); font-weight: 600; letter-spacing: -0.025em; max-width: 16ch; margin: 18px auto 0; }
.cta__title em { font-style: normal; color: var(--lime); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line); background: #070707; font-size: 16px; }
.footer a { transition: color .2s ease, border-color .2s ease; }

.footer__news {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 60px; align-items: center;
  padding: clamp(36px, 5vw, 56px) 0; border-bottom: 1px solid var(--line);
}
.footer__news h2 { font-size: clamp(24px, 2.6vw, 34px); }
.footer__news p { color: var(--muted); margin-top: 8px; max-width: 46ch; }

.subscribe { display: flex; gap: 8px; }
.subscribe input[type="email"] {
  flex: 1; min-width: 0; height: 52px; background: var(--surface); border: 1px solid #333; border-radius: 999px;
  padding: 0 20px; color: #fff; font: inherit; font-size: 16px;
}
.subscribe input[type="email"]::placeholder { color: #8a8a8a; }
.subscribe input[type="email"]:focus { outline: none; border-color: var(--lime); }
.subscribe button {
  flex: none; height: 52px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--lime); color: var(--lime-ink); font: inherit; font-size: 16px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px; transition: background-color .2s ease;
}
.subscribe button:hover { background: #d8ff3a; }
.subscribe button[disabled] { opacity: .6; cursor: wait; }
.subscribe button svg { width: 14px; height: 14px; }
.footer__news .form-status { margin-top: 10px; padding-left: 20px; }

.footer__cols {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr .8fr; gap: 40px 48px;
  padding: clamp(40px, 5vw, 64px) 0 clamp(32px, 4vw, 48px);
}
.footer__logo { height: 46px; width: auto; }
.footer__about { color: var(--muted); margin-top: 18px; max-width: 38ch; }

.footer__contact { margin-top: 22px; display: grid; gap: 10px; }
.footer__contact li { display: flex; gap: 12px; align-items: center; color: #dcdcdc; }
.footer__contact svg { flex: none; width: 18px; height: 18px; color: var(--lime); }
.footer__contact a:hover { color: var(--lime); }
.footer__contact small { color: var(--muted); font-size: 14px; }

.footer__title { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer__links li { margin-bottom: 10px; }
.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--lime); }
.footer__new {
  display: inline-block; margin-left: 8px; vertical-align: 1px;
  font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--lime); border: 1px solid rgba(201, 243, 29, .45); border-radius: 999px; padding: 1px 7px;
}

.footer__offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-bottom: clamp(32px, 4vw, 48px); }
.office { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: var(--surface); }
.office b { display: block; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); margin-bottom: 6px; }
.office span { display: block; color: #cfcfcf; font-size: 15px; line-height: 1.5; }

.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
  padding: 20px 0 26px; border-top: 1px solid var(--line); color: #8d8d8d; font-size: 14px;
}
.footer__bottom ul { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.footer__bottom a:hover { color: var(--lime); }
.to-top { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #333; border-radius: 999px; padding: 7px 14px; color: #dcdcdc; }
.to-top:hover { border-color: var(--lime); }
.to-top svg { width: 12px; height: 12px; }

@media (max-width: 1100px) {
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; column-gap: 48px; align-items: start; }
  .footer__brand .footer__contact { grid-column: 2; grid-row: 1 / span 2; margin-top: 6px; }
}
@media (max-width: 960px) {
  .footer__news { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer__cols > nav:last-child { grid-column: 1 / -1; }
  .footer__brand { display: block; }
  .footer__brand .footer__contact { margin-top: 22px; }
  .footer__offices { grid-template-columns: 1fr; }
  .subscribe { flex-wrap: wrap; }
  .subscribe input[type="email"] { flex: 1 1 100%; }
  .subscribe button { flex: 1 1 100%; justify-content: center; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- service pages ---------- */

.page-hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 100px); border-bottom: 1px solid var(--line); }
.page-hero::before {
  content: ""; position: absolute; right: -10%; top: -40%; width: 60vw; height: 60vw; max-width: 820px; max-height: 820px;
  background: radial-gradient(closest-side, rgba(201, 243, 29, .13), transparent); pointer-events: none;
}
.page-hero__grid { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: end; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 400; color: #8d8d8d; margin-bottom: 28px; }
.crumbs a:hover { color: var(--lime); }
.crumbs b { font-weight: 400; color: #d9d9d9; }

.page-hero__title { font-size: clamp(38px, 6vw, 82px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.02; margin-top: 18px; }
.page-hero__title em { font-style: normal; color: var(--lime); }
.page-hero__lead { margin-top: 24px; font-size: clamp(18px, 1.6vw, 21px); color: #cfcfcf; max-width: 52ch; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.glance { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(22px, 3vw, 32px); }
.glance h2 { font-size: 15px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
.glance .checks { margin-top: 18px; }

.card--static:hover { transform: none; border-color: var(--line); background: var(--surface); }
.card--static { min-height: 0; }
.card--static .card__title { margin-top: 22px; font-size: 22px; }

.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 6vw, 88px); align-items: start; }
.split__copy p { color: var(--muted); margin-top: 20px; max-width: 46ch; }
.reasons { display: grid; gap: 12px; }
.reason { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--lime); border-radius: 14px; padding: 22px 24px; }
.reason h3 { font-size: 20px; }
.reason p { color: var(--muted); margin-top: 8px; font-size: 16px; }

.steps--4 { grid-template-columns: repeat(4, 1fr); }

.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq details[open] { border-color: #3d3d3d; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 20px 24px; font-size: 19px; font-weight: 500; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 26px; font-weight: 300; line-height: 1; color: var(--lime); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); max-width: 70ch; }

.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .reason, .band .faq details { background: var(--bg); }

.media { border-radius: calc(var(--radius) + 4px); overflow: hidden; border: 1px solid var(--line); background: #1a1a1a; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--hero { aspect-ratio: 4 / 3; }
.media--contain { background: #fff; }
.media--contain img { object-fit: contain; padding: 14px; }
.media--wide { aspect-ratio: 16 / 10; }
.split__copy .media { margin-top: 32px; }
.split--center { align-items: center; }
.split__copy .btn { margin-top: 28px; }

.reasons--grid { grid-template-columns: repeat(2, 1fr); }

.hire__panel .panel__text p { margin-top: 0; max-width: none; font-size: clamp(17px, 1.5vw, 19px); }
.hire__panel .panel__text p + p { margin-top: 16px; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery .media { aspect-ratio: 3 / 4; }
.gallery .media:nth-child(even) { margin-top: 40px; }

.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.perk { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; font-size: 19px; font-weight: 400; }
.perk svg { flex: none; width: 22px; height: 22px; color: var(--lime); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 17px; }
.table th, .table td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { font-size: 14px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { font-weight: 500; color: #fff; }
.table td { color: #d0d0d0; }

/* forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 14px; font-weight: 400; color: #bdbdbd; margin-bottom: 6px; }
.form input, .form textarea {
  width: 100%; background: var(--surface); border: 1px solid #333; border-radius: 12px;
  padding: 14px 16px; color: #fff; font: inherit; font-size: 16px;
}
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--lime); }
.form .field_error { border-color: #ff6b6b; }
.form button[disabled] { opacity: .6; cursor: wait; }
/* honeypot field: hidden from people, visible to bots */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 12px; font-size: 15px; font-weight: 400; min-height: 1.4em; }
.form-status.is-ok { color: var(--lime); }
.form-status.is-err { color: #ff8a8a; }

.contact-list { margin-top: 28px; display: grid; gap: 10px; }
.contact-list a { font-size: clamp(20px, 2.2vw, 28px); font-weight: 500; }
.contact-list a:hover { color: var(--lime); }
.offices { margin-top: 32px; display: grid; gap: 14px; color: var(--muted); }
.offices b { display: block; color: #fff; font-weight: 500; }

/* long-form text (terms) */
.prose { max-width: 820px; }
.prose h2 { font-size: clamp(22px, 2.4vw, 30px); margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: #c9c9c9; margin-bottom: 14px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; color: #c9c9c9; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--lime); text-decoration: underline; }

.notfound { text-align: center; padding: clamp(60px, 10vw, 140px) 0; }
.notfound img { width: min(420px, 80%); margin: 0 auto 32px; }
.notfound p { color: var(--muted); margin: 14px 0 30px; }

@media (max-width: 960px) {
  .page-hero__grid, .split { grid-template-columns: 1fr; }
  .steps--4 { grid-template-columns: repeat(2, 1fr); }
  .gallery, .perks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .steps--4, .reasons--grid, .perks, .form { grid-template-columns: 1fr; }
  .gallery .media:nth-child(even) { margin-top: 0; }
  .perk { font-size: 17px; padding: 16px 18px; }
  .faq summary { padding: 16px 18px; font-size: 17px; }
  .faq details p { padding: 0 18px 18px; }
  .page-hero__actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- reveal (only when JS is running) ---------- */

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .new-block .cards { grid-template-columns: repeat(2, 1fr); }
  .new-block .card { min-height: 0; }
  .brands__grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 18px;
    padding: 18px var(--gutter) 26px; background: #0b0b0b; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a { display: block; padding: 13px 0; font-size: 19px; border-bottom: 1px solid var(--line); }
  .nav .btn { justify-content: center; padding: 16px 20px; }

  .section-head, .hero__row, .about__grid, .hire__panel { grid-template-columns: 1fr; }
  .hero__actions { justify-content: flex-start; }
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .card { min-height: 0; }
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .about__media { max-width: 520px; }
  .about__badge { left: 12px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header__inner { height: 66px; }
  .header__logo img { height: 34px; }
  .hero__bg { width: 150vw; right: -60%; top: 0; opacity: .32; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 22px 12px 24px 0; }
  .stat + .stat { padding-left: 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .cards, .new-block .cards, .steps { grid-template-columns: 1fr; }
  .card__title { margin-top: 22px; }
  .hire__item { grid-template-columns: 84px 1fr; padding: 16px; }
  .brands__grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .brands__item { min-height: 84px; padding: 10px; }
  .brands__item img { width: 72px; }
  .hero__actions .btn, .cta__actions .btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .card__go, .work__item img { transition: none; }
}
