:root {
  --bg: #05060f;
  --bg2: #0a0d1f;
  --line: #1c2140;
  --text: #ffffff;
  --muted: #a3abc6;
  --blue: #2f6bff;
  --cyan: #18d7ff;
  --violet: #7b3cff;
  --grad: linear-gradient(90deg, var(--cyan), var(--blue) 45%, var(--violet));
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--head); margin: 0; line-height: 1.1; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; font: 600 15px var(--body); border-radius: 2px; transition: transform .2s, background-color .2s, border-color .2s; cursor: pointer; border: 0; }
.btn-primary { background: var(--grad); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-line { border: 1px solid #3a4270; color: #fff; }
.btn-line:hover { border-color: var(--cyan); }

.nav { position: sticky; top: 0; z-index: 20; background: rgba(5, 6, 15, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 44px; height: auto; }
.word { font: 300 22px var(--head); letter-spacing: -.01em; white-space: nowrap; }
.word b { font-weight: 700; margin-right: 3px; }
.links { display: flex; gap: 28px; margin-left: auto; }
.links a { font-size: 15px; color: var(--muted); transition: color .2s; }
.links a:hover { color: #fff; }
.nav-cta { min-height: 42px; padding: 0 20px; }
.menu { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 12px 10px; flex-direction: column; justify-content: space-between; }
.menu span { display: block; height: 2px; background: #fff; transition: transform .2s; }
.nav.open .menu span:first-child { transform: translateY(8px) rotate(45deg); }
.nav.open .menu span:last-child { transform: translateY(-8px) rotate(-45deg); }

.hero { position: relative; overflow: hidden; padding: 110px 0 120px; background: radial-gradient(60% 70% at 85% 30%, #10184a 0%, transparent 70%), radial-gradient(50% 60% at 0% 100%, #0d1440 0%, transparent 70%); }
.ribbons { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; }
.kicker { margin: 0 0 18px; font: 500 13px var(--head); letter-spacing: .3em; text-transform: uppercase; color: var(--cyan); }
h1 { font-size: clamp(42px, 7vw, 84px); font-weight: 800; letter-spacing: -.02em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); max-width: 520px; margin: 22px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-art img { width: 100%; max-width: 460px; margin-left: auto; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }

.section { padding: 100px 0; border-top: 1px solid var(--line); }
.section.alt { background: var(--bg2); }
.head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 40px; }

.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { font: 500 14px var(--body); color: var(--muted); background: none; border: 1px solid var(--line); padding: 9px 16px; border-radius: 2px; cursor: pointer; transition: color .2s, border-color .2s; }
.filters button:hover { color: #fff; }
.filters button[aria-selected="true"] { color: #fff; border-color: var(--blue); background: #0f1a45; }

.grid { columns: 3; column-gap: 18px; }
.item { break-inside: avoid; margin: 0 0 18px; display: block; width: 100%; padding: 0; border: 0; background: #0c1026; cursor: pointer; text-align: left; color: inherit; position: relative; overflow: hidden; }
.item img { width: 100%; height: auto; transition: transform .5s, opacity .3s; }
.item:hover img { transform: scale(1.03); }
.item .cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.item .cap strong { font: 600 15px var(--head); }
.item .cap span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }

.services { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc { padding: 32px 26px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.svc svg { width: 34px; height: 34px; fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.svc h3 { font-size: 18px; font-weight: 700; margin: 22px 0 10px; }
.svc p { margin: 0; color: var(--muted); font-size: 15px; }

.about { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.about-text p { margin: 0 0 16px; font-size: 18px; color: var(--muted); }
.about-text p:first-child { color: #fff; }

.contact { background: radial-gradient(60% 100% at 80% 100%, #131c55 0%, transparent 70%); }
.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.contact-list span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; padding-top: 4px; }
.contact-list a:hover { color: var(--cyan); }

.foot { border-top: 1px solid var(--line); padding: 36px 0; }
.foot-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot p { margin: 0; color: var(--muted); font-size: 14px; }
.foot .copy { margin-left: auto; }

.lb { position: fixed; inset: 0; z-index: 50; background: rgba(3, 4, 10, .96); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lb[hidden] { display: none; }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; max-height: 100vh; padding: 56px 0 24px; min-width: 0; }
.lb-fig img { max-width: 100%; max-height: calc(100vh - 180px); object-fit: contain; }
.lb-fig figcaption { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 16px; text-align: center; max-width: 640px; color: var(--muted); font-size: 15px; }
.lb-fig strong { color: #fff; font: 700 20px var(--head); }
.lb-cat { font-size: 12px; text-transform: uppercase; letter-spacing: .15em; color: var(--cyan); }
.lb-pages { font-size: 13px; }
.lb button { background: none; border: 0; color: #fff; cursor: pointer; }
.lb-nav { font-size: 52px; height: 100%; opacity: .7; }
.lb-nav:hover { opacity: 1; }
.lb-close { position: absolute; top: 10px; right: 14px; font-size: 40px; width: 48px; height: 48px; z-index: 2; }

@media (max-width: 1000px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .grid { columns: 2; }
}

@media (max-width: 820px) {
  .links, .nav-cta { display: none; }
  .menu { display: flex; }
  .nav.open .links { display: flex; flex-direction: column; gap: 0; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; }
  .nav.open .links a { padding: 14px 0; font-size: 17px; color: #fff; border-bottom: 1px solid var(--line); }
  .hero { padding: 64px 0 80px; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 220px; margin: 0; }
  .about, .contact-in { grid-template-columns: 1fr; gap: 20px; }
  .section { padding: 72px 0; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .grid { column-gap: 10px; }
  .item { margin-bottom: 10px; }
  .item .cap { padding: 10px; }
  .item .cap span { display: none; }
  .item .cap strong { font-size: 13px; }
  .services { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; }
  .lb { grid-template-columns: 40px 1fr 40px; }
  .lb-nav { font-size: 40px; }
  .foot .copy { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art img { animation: none; }
  * { transition: none !important; }
}
