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

:root {
  --bg: #0A1220;
  --panel: #0E1A2E;
  --panel-2: #12213A;
  --ink: #E8EEF9;
  --muted: #8FA0BF;
  --accent: #4D9FFF;
  --accent-2: #6FB5FF;
  --line: #1D2C47;
  --inset: 10px;
  --gap: 22px;
  --sect: 84px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Onest', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
}

::selection { background: var(--accent); color: var(--bg); }

a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

h1, h2, h3 { font-family: 'Unbounded', sans-serif; font-weight: 500; line-height: 1.18; letter-spacing: -0.5px; }

h2 { font-size: 30px; margin-bottom: 12px; }

.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-head p { color: var(--muted); font-size: 16px; }

.top { background: rgba(10, 18, 32, 0.86); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); }

.top-in { display: flex; align-items: center; gap: 30px; padding-top: 15px; padding-bottom: 15px; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.brand-mark i {
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  animation: beat 1.6s ease-in-out infinite;
}
.brand-mark i:nth-child(1) { height: 7px; animation-delay: 0s; }
.brand-mark i:nth-child(2) { height: 12px; animation-delay: .2s; }
.brand-mark i:nth-child(3) { height: 18px; animation-delay: .4s; }
.brand-mark i:nth-child(4) { height: 12px; animation-delay: .6s; }
.brand-mark i:nth-child(5) { height: 7px; animation-delay: .8s; }

@keyframes beat {
  0%, 100% { transform: scaleY(0.5); opacity: 0.55; }
  50% { transform: scaleY(1); opacity: 1; }
}

.top-nav { display: flex; gap: 24px; margin-left: auto; }
.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.top-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

.top-tg {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 9px 18px;
  border-radius: 10px;
  white-space: nowrap;
}
.top-tg:hover { border-color: var(--accent); color: var(--accent); }

.burger { display: none; background: none; border: 1px solid var(--line); padding: 8px 10px; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; }

.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  padding-top: 84px;
  padding-bottom: 64px;
  align-items: center;
}

.hero-over {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-text h1 { font-size: 40px; margin-bottom: 22px; }

.lead { color: var(--muted); font-size: 18px; max-width: 540px; }

.hero-act { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  padding: 15px 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--accent-2); }
.btn:active { transform: translateY(2px); background: #3B87E6; }
.btn-big { padding: 18px 40px; font-size: 17px; }

.btn-ghost {
  display: inline-block;
  border: 1px solid var(--line);
  padding: 14px 29px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  border-radius: 12px;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost:active { transform: translateY(2px); }

.hero-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 44px 36px;
  text-align: center;
}

.signal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 70px;
  margin-bottom: 24px;
}
.signal i {
  width: 5px;
  height: var(--h);
  background: var(--accent);
  border-radius: 3px;
  animation: wave 1.8s ease-in-out infinite;
  animation-delay: var(--d);
}
@keyframes wave {
  0%, 100% { transform: scaleY(0.45); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

.hero-ping { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 15px; color: var(--ink); }
.hero-ping-time { color: var(--muted); font-size: 13px; margin-top: 6px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 8px;
}
.stat { padding: 22px 18px; text-align: center; background: var(--panel); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 24px;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}
.stat span { font-size: 13px; color: var(--muted); }

.works { padding-top: var(--sect); padding-bottom: 40px; }
.works .works-note { margin-top: 20px; }

.works-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.work {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .2s, transform .2s;
}
.work:hover { border-color: var(--accent); transform: translateY(-4px); }
.work:active { transform: translateY(-1px); }

.work.feat { grid-column: 1 / -1; }
.work.feat img { aspect-ratio: 21 / 9; }

.work img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--line);
}

.work-meta { padding: 18px 22px 20px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.work-meta h3 { font-size: 17px; }
.work-tag { color: var(--muted); font-size: 13px; }
.work-open {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  opacity: 0;
}
.work:hover .work-open { opacity: 1; }

.works-note { color: var(--muted); font-size: 13px; }

.services { padding-top: var(--sect); padding-bottom: 40px; }

.acc { display: flex; flex-direction: column; gap: 14px; }

.acc-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.acc-item.open { border-color: var(--accent); }

.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  background: none;
  border: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 17px;
  text-align: left;
  padding: 22px 26px;
  cursor: pointer;
}
.acc-btn:hover { background: var(--panel-2); }
.acc-title { font-weight: 600; font-size: 18px; }
.acc-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--accent);
  white-space: nowrap;
}
.acc-icon {
  margin-left: auto;
  width: 28px;
  height: 28px;
  position: relative;
  flex: none;
}
.acc-icon::before, .acc-icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  top: 50%;
  left: 50%;
}
.acc-icon::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.acc-icon::after { width: 2px; height: 14px; transform: translate(-50%, -50%); transition: transform .25s; }
.acc-item.open .acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-item.open .acc-icon::before { transform: translate(-50%, -50%) rotate(180deg); }

.acc-panel { display: none; padding: 0 26px 24px; }
.acc-item.open .acc-panel { display: block; }
.acc-panel p { color: var(--muted); font-size: 15px; margin-bottom: 10px; max-width: 640px; }
.acc-panel b { color: var(--ink); font-weight: 600; }

.process { padding-top: var(--sect); padding-bottom: 40px; }

.proc-list { list-style: none; }
.proc-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 26px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.proc-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 26px;
  color: var(--accent);
  line-height: 1.2;
}
.proc-list h3 { font-size: 17px; margin-bottom: 8px; }
.proc-list p { color: var(--muted); font-size: 15px; max-width: 560px; }

.about { padding-top: var(--sect); padding-bottom: 40px; }

.about-body { max-width: 640px; }
.about-body p { color: var(--muted); margin-bottom: 16px; }

.about-facts {
  list-style: none;
  display: flex;
  gap: 20px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.about-facts li {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 20px;
  background: var(--panel);
}
.about-facts b {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  font-size: 16px;
  display: block;
  margin-bottom: 2px;
}
.about-facts span { font-size: 13px; color: var(--muted); }

.contacts { padding-top: var(--sect); padding-bottom: 80px; }

.contact-card {
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
}
.contact-lead { color: var(--muted); max-width: 480px; margin: 0 auto 28px; }
.contact-note { color: var(--muted); font-size: 13px; margin-top: 16px; }

.foot { border-top: 1px solid var(--line); padding: 24px 0; }
.foot-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--muted);
}
.foot-brand { font-family: 'Unbounded', sans-serif; font-weight: 700; color: var(--ink); }

@media (max-width: 900px) {
  .top-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 16px 24px;
    gap: 14px;
  }
  .top-nav.open { display: flex; }
  .burger { display: block; margin-left: auto; }
  .top-tg { display: none; }

  .hero { grid-template-columns: 1fr; padding-top: 56px; gap: 40px; }
  .hero-text h1 { font-size: 30px; }
  .hero-card { max-width: 360px; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }

  .works-grid { grid-template-columns: 1fr; }
  .work.feat img { aspect-ratio: 16 / 9; }
  .work-open { opacity: 1; }
}

@media (max-width: 480px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 44px; }
  .hero-text h1 { font-size: 24px; }
  .lead { font-size: 16px; }
  .hero-act .btn, .hero-act .btn-ghost { width: 100%; text-align: center; }
  h2 { font-size: 23px; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: none; border-top: 1px solid var(--line); }
  .work-meta { padding: 14px 16px 16px; }
  .acc-btn { padding: 18px 18px; flex-wrap: wrap; gap: 8px; }
  .acc-price { width: 100%; padding-left: 0; }
  .acc-panel { padding: 0 18px 20px; }
  .proc-list li { grid-template-columns: 52px 1fr; gap: 16px; }
  .contact-card { padding: 34px 20px; }
  .contact-card .btn { width: 100%; }
}
