:root {
  --bg: #0b0f1a;
  --bg-2: #0f1424;
  --surface: #ffffff;
  --surface-2: #f5f7fb;
  --text: #0d1426;
  --text-dim: #5a6478;
  --text-on-dark: #e7ecf7;
  --text-on-dark-dim: #98a3bd;
  --accent: #2f6bff;
  --accent-2: #6f9bff;
  --accent-soft: rgba(47, 107, 255, 0.10);
  --line: #e6eaf2;
  --line-dark: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 6px rgba(13, 20, 38, 0.06);
  --shadow-md: 0 10px 30px rgba(13, 20, 38, 0.10);
  --shadow-lg: 0 30px 60px rgba(13, 20, 38, 0.18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--surface);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -0.01em; }
.logo__mark {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2f6bff, #6f9bff);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 16px rgba(47, 107, 255, 0.35);
}
.logo__text { font-size: 17px; }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--text-dim); font-size: 15px; transition: color .15s ease; }
.nav a:hover { color: var(--text); }

@media (max-width: 760px) {
  .nav { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn--sm { padding: 8px 16px; font-size: 14px; }
.btn--primary {
  background: linear-gradient(135deg, #2f6bff, #4f86ff);
  color: #fff;
  box-shadow: 0 10px 24px rgba(47, 107, 255, 0.35);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(47, 107, 255, 0.40); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--text); }
.btn--tg {
  background: linear-gradient(135deg, #229ED9, #2eb6f0);
  color: #fff;
  box-shadow: 0 8px 20px rgba(34, 158, 217, 0.35);
}
.btn--tg:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(34, 158, 217, 0.45); }
.ico-tg { width: 16px; height: 16px; }
.btn--primary .ico-tg, .btn:not(.btn--sm) .ico-tg { width: 18px; height: 18px; }

.topbar__actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 560px) {
  .topbar__mail { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(47, 107, 255, 0.12), transparent 60%),
    radial-gradient(800px 500px at 0% 110%, rgba(111, 155, 255, 0.10), transparent 60%),
    var(--surface);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  padding: 96px 24px 110px;
}
.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.hero__copy h1 {
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  font-weight: 700;
}
.lead {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 56ch;
  margin: 0 0 30px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__meta {
  display: flex; gap: 36px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero__meta > div { display: flex; flex-direction: column; }
.hero__meta b { font-size: 24px; letter-spacing: -0.01em; }
.hero__meta span { font-size: 13px; color: var(--text-dim); }

/* hero art */
.hero__art {
  position: relative;
  height: 440px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #0b1228 0%, #16204a 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__art .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at center, #000 50%, transparent 85%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.85;
}
.orb--1 { width: 260px; height: 260px; background: #2f6bff; top: -40px; right: -40px; }
.orb--2 { width: 220px; height: 220px; background: #8d5bff; bottom: -50px; left: -30px; opacity: 0.7; }
.orb--3 { width: 160px; height: 160px; background: #29c2ff; top: 50%; left: 40%; opacity: 0.55; }

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; padding: 64px 24px 80px; gap: 40px; }
  .hero__art { height: 280px; }
}

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--surface-2); }
.section--cta { background: linear-gradient(180deg, #0b0f1a 0%, #0f1424 100%); color: var(--text-on-dark); }
.section--cta .eyebrow { background: rgba(111, 155, 255, 0.16); color: #a9c1ff; }

.section__head {
  text-align: center;
  margin: 0 auto 56px;
  max-width: 720px;
}
.section__head h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 700;
}
.section__lead { color: var(--text-dim); font-size: 17px; margin: 0; }

/* ---------- services cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1080px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d5dcec; }
.card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--text-dim); font-size: 14.5px; line-height: 1.55; }
.card--accent {
  background: linear-gradient(160deg, #1a2243 0%, #0e1530 100%);
  color: var(--text-on-dark);
  border-color: transparent;
}
.card--accent .card__icon { background: rgba(111, 155, 255, 0.18); color: #a9c1ff; }
.card--accent p { color: var(--text-on-dark-dim); }
.card__cta {
  display: inline-block;
  margin-top: 14px;
  color: #a9c1ff;
  font-weight: 600;
  font-size: 14.5px;
}

/* ---------- why ---------- */
.reasons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1080px) { .reasons { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .reasons { grid-template-columns: 1fr; } }

.reason {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--line);
}
.reason__num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: 0.08em;
}
.reason h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.reason p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* ---------- contacts ---------- */
.contacts {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 960px) { .contacts { grid-template-columns: 1fr; } }

.contacts--single {
  grid-template-columns: 1fr;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.contacts--single .contacts__copy .lead { margin-left: auto; margin-right: auto; }
.contacts--single .contacts__list { max-width: 420px; margin-left: auto; margin-right: auto; }
.contacts--single .contact { text-align: left; }

.contacts__copy h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.contacts__copy .lead { color: var(--text-on-dark-dim); max-width: 48ch; }

.contacts__list { display: grid; gap: 14px; margin-top: 28px; }
.contact {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  transition: background .15s ease, transform .15s ease;
}
.contact:hover { background: rgba(255, 255, 255, 0.07); transform: translateY(-2px); }
.contact__icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(111, 155, 255, 0.18);
  color: #a9c1ff;
}
.contact__icon svg { width: 20px; height: 20px; }
.contact__icon--tg { background: rgba(34, 158, 217, 0.22); color: #5cc6ee; }
.contact--tg:hover { background: rgba(34, 158, 217, 0.12); }
.contact__label { font-size: 12.5px; color: var(--text-on-dark-dim); letter-spacing: 0.04em; text-transform: uppercase; }
.contact__value { font-size: 18px; font-weight: 600; margin-top: 2px; }

/* requisites card */
.reqcard {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  backdrop-filter: blur(6px);
}
.reqcard h3 {
  margin: 0 0 18px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.reqcard dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 12px 18px;
}
.reqcard dt {
  color: var(--text-on-dark-dim);
  font-size: 13px;
  align-self: center;
}
.reqcard dd {
  margin: 0;
  font-size: 14.5px;
  font-weight: 500;
  word-break: break-word;
}

@media (max-width: 480px) {
  .reqcard dl { grid-template-columns: 1fr; gap: 4px 0; }
  .reqcard dt { margin-top: 10px; }
}

/* ---------- footer ---------- */
.footer {
  background: #06090f;
  color: var(--text-on-dark-dim);
  padding: 24px 0;
  font-size: 14px;
}
.footer__inner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.footer__contacts { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__contacts a { transition: color .15s ease; }
.footer__contacts a:hover { color: #fff; }

/* ---------- chat widget ---------- */
.itrchat { position: fixed; right: 24px; bottom: 24px; z-index: 1000; font-family: inherit; }
.itrchat__fab {
  width: 60px; height: 60px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: linear-gradient(135deg, #229ED9, #2eb6f0);
  color: #fff;
  box-shadow: 0 12px 30px rgba(34, 158, 217, 0.45);
  display: grid; place-items: center;
  transition: transform .15s ease, box-shadow .15s ease;
  position: relative;
}
.itrchat__fab:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(34, 158, 217, 0.55); }
.itrchat__fab svg { width: 26px; height: 26px; }
.itrchat__fab-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 20px; height: 20px; padding: 0 5px;
  background: #ff5050; color: #fff;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
  border: 2px solid #fff;
}
.itrchat__panel {
  position: absolute; right: 0; bottom: 76px;
  width: 360px; max-width: calc(100vw - 32px);
  height: 520px; max-height: calc(100vh - 120px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(13, 20, 38, 0.30);
  display: flex; flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
}
.itrchat__head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #229ED9, #2eb6f0);
  color: #fff;
}
.itrchat__head-info { flex: 1; min-width: 0; }
.itrchat__head-title { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.itrchat__head-status { font-size: 12px; opacity: 0.85; margin-top: 2px; }
.itrchat__close {
  width: 30px; height: 30px;
  border: 0; border-radius: 8px;
  background: rgba(255,255,255,0.18); color: #fff;
  cursor: pointer; display: grid; place-items: center;
}
.itrchat__close:hover { background: rgba(255,255,255,0.28); }
.itrchat__close svg { width: 16px; height: 16px; }

.itrchat__log {
  flex: 1; overflow-y: auto;
  padding: 14px 14px 6px;
  background: #f7f9fc;
  display: flex; flex-direction: column; gap: 10px;
  scroll-behavior: smooth;
}
.itrchat__msg { max-width: 85%; display: flex; flex-direction: column; }
.itrchat__msg-label { font-size: 11px; color: var(--text-dim); margin: 0 8px 3px; }
.itrchat__msg-body {
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 14px; line-height: 1.45;
  word-wrap: break-word; word-break: break-word;
}
.itrchat__msg-body a { color: inherit; text-decoration: underline; }
.itrchat__msg-time { font-size: 10.5px; color: var(--text-dim); margin: 3px 8px 0; }

.itrchat__msg--bot { align-self: flex-start; }
.itrchat__msg--bot .itrchat__msg-body { background: #eaf0fb; color: #0d1426; border-bottom-left-radius: 4px; }

.itrchat__msg--manager { align-self: flex-start; }
.itrchat__msg--manager .itrchat__msg-body { background: #e0f3fc; color: #0d1426; border-bottom-left-radius: 4px; border: 1px solid #b9e3f5; }

.itrchat__msg--user { align-self: flex-end; }
.itrchat__msg--user .itrchat__msg-body { background: linear-gradient(135deg, #229ED9, #2eb6f0); color: #fff; border-bottom-right-radius: 4px; }
.itrchat__msg--user .itrchat__msg-time { align-self: flex-end; }

.itrchat__form {
  display: flex; gap: 8px; align-items: flex-end;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.itrchat__input {
  flex: 1; resize: none;
  font: inherit;
  font-size: 14px; line-height: 1.4;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f5f7fb;
  color: var(--text);
  outline: none;
  max-height: 140px;
}
.itrchat__input:focus { border-color: #229ED9; background: #fff; }
.itrchat__send {
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: linear-gradient(135deg, #229ED9, #2eb6f0);
  color: #fff; cursor: pointer;
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(34, 158, 217, 0.30);
}
.itrchat__send:hover { transform: translateY(-1px); box-shadow: 0 10px 18px rgba(34, 158, 217, 0.40); }
.itrchat__send svg { width: 18px; height: 18px; }

@media (max-width: 520px) {
  .itrchat { right: 12px; bottom: 12px; }
  .itrchat__panel { width: calc(100vw - 24px); height: calc(100vh - 90px); bottom: 70px; right: 0; }
}
