/* RQ Group — общие стили для всех языковых версий (site/index.html, site/en/, site/kz/). */

:root {
  --bg: #f3f2ee;
  --surface: #ffffff;
  --ink: #0b0b0b;
  --muted: #67665f;
  --line: rgba(11, 11, 11, .12);
  --inv-muted: rgba(255, 255, 255, .58);
  --inv-line: rgba(255, 255, 255, .14);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 24px; height: 31px; display: block; }
.wordmark { font-size: 20px; letter-spacing: -.02em; line-height: 1; }
.wordmark b { font-weight: 700; }
.wordmark span { font-weight: 400; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav .btn { color: var(--bg); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg);
  font: inherit; font-size: 15px; font-weight: 500;
  text-decoration: none; white-space: nowrap;
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.nav .btn { height: 40px; padding: 0 18px; }

.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.nav .lang a {
  padding: 5px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: .06em; line-height: 1;
}
.nav .lang a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.btn svg { width: 16px; height: 16px; }

/* ---------- hero ---------- */
.hero { border-bottom: 1px solid var(--line); overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center;
  gap: clamp(32px, 6vw, 96px);
  min-height: calc(100svh - 68px);
  padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(48px, 8vw, 96px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
h1 {
  margin: 28px 0 0;
  font-size: clamp(64px, 12.5vw, 184px);
  line-height: .86; letter-spacing: -.055em; font-weight: 700;
}
h1 span { display: block; font-weight: 300; }
.lead { margin: 36px 0 0; max-width: 34ch; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); }
.lead strong { color: var(--ink); font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.mark-stage { position: relative; justify-self: center; width: 100%; max-width: 440px; }
.mark-stage::before {
  content: ""; position: absolute; inset: -12% -18%;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 44px 44px;
  mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
}
.mark { position: relative; width: 100%; height: auto; display: block; }
.mark path { fill: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .mark path { animation: piece 1.1s cubic-bezier(.2, .8, .2, 1) both; }
  .mark .p1 { --dx: -40px; --dy: -40px; animation-delay: .05s; }
  .mark .p2 { --dx: -56px; --dy: 0; animation-delay: .18s; }
  .mark .p3 { --dx: 48px; --dy: 40px; animation-delay: .3s; }
  .reveal { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
  .reveal.d1 { animation-delay: .08s; }
  .reveal.d2 { animation-delay: .16s; }
  .reveal.d3 { animation-delay: .24s; }
}
@keyframes piece { from { opacity: 0; transform: translate(var(--dx), var(--dy)); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- services ---------- */
.services { padding: clamp(72px, 10vw, 128px) 0; }
.services .section-head p { color: var(--muted); }
.svc {
  list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
}
.svc li {
  padding: 24px 24px 8px 0;
  display: flex; flex-direction: column; gap: 12px;
}
.svc li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.svc .num { font-size: 13px; font-weight: 500; letter-spacing: .12em; color: var(--muted); }
h3 { margin: 12px 0 0; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.2; letter-spacing: -.02em; font-weight: 500; }
.svc p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- contacts ---------- */
.contacts { background: var(--ink); color: #fff; padding: clamp(72px, 10vw, 128px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
h2 {
  margin: 18px 0 0;
  font-size: clamp(40px, 6vw, 76px); line-height: .95; letter-spacing: -.045em; font-weight: 500;
}
.contacts .eyebrow { color: var(--inv-muted); }
.section-head p { margin: 0; max-width: 36ch; color: var(--inv-muted); }

.cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--inv-line);
}
.card {
  padding: 28px 28px 32px 0;
  display: flex; flex-direction: column; gap: 10px;
  border-bottom: 1px solid var(--inv-line);
}
.card + .card { padding-left: 28px; border-left: 1px solid var(--inv-line); }
.card .label { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--inv-muted); }
.card .value { font-size: clamp(20px, 2vw, 26px); line-height: 1.3; letter-spacing: -.015em; text-decoration: none; }
.card a.value:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.card .sub { color: var(--inv-muted); font-size: 15px; }
.card .sub a { color: #fff; text-underline-offset: 3px; }

.big-mail {
  display: block; margin-top: clamp(48px, 7vw, 88px);
  font-size: clamp(44px, 11vw, 168px); font-weight: 500;
  letter-spacing: -.055em; line-height: 1; text-decoration: none;
  overflow-wrap: anywhere;
}
.big-mail span { display: inline-block; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.big-mail:hover span { transform: translateX(.08em); }
.big-mail svg { width: .5em; height: .5em; vertical-align: .12em; margin-left: .12em; }

/* ---------- requisites ---------- */
.req { padding: clamp(72px, 10vw, 120px) 0; }
.req .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.req h2 { font-size: clamp(34px, 4.4vw, 56px); }
dl { margin: 0; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); font-size: 15px; }
dd { margin: 0; font-weight: 500; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); }
.footer .wrap {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 28px; padding-bottom: 28px;
  font-size: 14px; color: var(--muted);
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .mark-stage { order: -1; max-width: 220px; justify-self: start; }
  .cards { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr 1fr; }
  .svc li, .svc li + li { padding: 24px 24px 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .svc li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .card, .card + .card { padding: 24px 0; border-left: 0; }
  .req .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav > a:not(.btn) { display: none; }
  .nav { gap: 12px; }
  .row { grid-template-columns: 1fr; gap: 4px; }
  .svc { grid-template-columns: 1fr; }
  .svc li:nth-child(even) { padding-left: 0; border-left: 0; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 420px) {
  .nav > .btn { display: none; }
}
