@font-face { font-family: "Manrope"; src: url("manrope-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("manrope-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("manrope-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("manrope-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("manrope-800.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --bg: #07111f;
  --bg-deep: #040b15;
  --surface: rgba(12, 27, 45, 0.72);
  --surface-strong: #0d1c2e;
  --line: rgba(165, 194, 222, 0.17);
  --line-strong: rgba(165, 194, 222, 0.28);
  --text: #f4f7fb;
  --muted: #a6b5c8;
  --subtle: #6f8299;
  --accent: #65e6d2;
  --accent-blue: #80d8ff;
  --ink: #06111d;
  --page: 1800px;
  --gutter: 48px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 4% 12%, rgba(37, 111, 190, 0.22), transparent 34rem),
    radial-gradient(circle at 95% 18%, rgba(47, 172, 157, 0.12), transparent 31rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p { margin: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.page-shell,
.site-header {
  width: min(calc(100% - (var(--gutter) * 2)), var(--page));
  margin-inline: auto;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.12;
  pointer-events: none;
}
.ambient-blue { left: -18rem; top: 16rem; background: #4199ff; }
.ambient-cyan { right: -20rem; top: 5rem; background: #54f4d2; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 36px;
  min-height: 88px;
  transition: background 180ms ease, border-color 180ms ease;
}
.site-header.is-scrolled {
  background: rgba(5, 13, 24, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 14px; width: max-content; font-weight: 700; letter-spacing: -0.025em; }
.brand-mark { color: var(--accent); font-weight: 800; letter-spacing: -0.04em; }
.brand-text { color: var(--text); }
.nav { display: flex; align-items: center; gap: 34px; color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.nav a { transition: color 160ms ease; }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.language-switcher { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(4, 11, 21, 0.62); }
.language-switcher button { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 10px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; font-size: 0.72rem; font-weight: 700; cursor: pointer; }
.language-switcher button.active { color: var(--ink); background: var(--accent-blue); }
.language-switcher button span:first-child { font-size: 1rem; }
.header-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 19px; border-radius: 12px; color: var(--ink); background: linear-gradient(135deg, var(--accent-blue), var(--accent)); font-size: 0.88rem; font-weight: 800; transition: transform 160ms ease; }
.header-cta:hover { transform: translateY(-2px); }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: rgba(255,255,255,0.035); }
.menu-button span { display: block; width: 17px; height: 1.5px; margin: 5px auto; background: currentColor; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.7fr);
  align-items: center;
  gap: clamp(60px, 8vw, 150px);
  min-height: min(820px, calc(100svh - 88px));
  padding-block: 78px 92px;
}
.hero-copy { max-width: 920px; }
.hero h1 { max-width: 900px; font-size: clamp(3.35rem, 5.2vw, 5.25rem); line-height: 0.98; letter-spacing: -0.055em; font-weight: 700; }
.hero-lead { max-width: 720px; margin-top: 28px; color: var(--muted); font-size: clamp(1.12rem, 1.45vw, 1.42rem); line-height: 1.55; letter-spacing: -0.02em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 56px; padding: 0 24px; border: 1px solid transparent; border-radius: 12px; font-size: 0.93rem; font-weight: 700; transition: transform 160ms ease, border-color 160ms ease, background 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: var(--ink); background: linear-gradient(135deg, var(--accent-blue), var(--accent)); }
.button.secondary { border-color: var(--line-strong); color: var(--text); background: rgba(255,255,255,0.025); }
.button.secondary:hover { border-color: rgba(101, 230, 210, 0.55); }
.quality-panel { border: 1px solid var(--line-strong); background: rgba(7, 17, 31, 0.48); }
.quality-panel div { display: flex; align-items: center; gap: 18px; min-height: 82px; padding: 0 28px; color: #d6dfeb; font-size: 0.94rem; line-height: 1.45; }
.quality-panel div + div { border-top: 1px solid var(--line); }
.check { color: var(--accent); font-size: 1.25rem; font-weight: 400; }

.services,
.projects { padding-block: 96px 108px; border-top: 1px solid var(--line); }
.section-intro { display: grid; grid-template-columns: minmax(220px, 0.6fr) minmax(300px, 1fr); align-items: end; gap: 48px; margin-bottom: 46px; }
.section-intro h2 { font-size: clamp(2.2rem, 3.2vw, 3.4rem); line-height: 1; letter-spacing: -0.05em; font-weight: 650; }
.section-intro p { max-width: 580px; justify-self: end; color: var(--muted); font-size: 1.02rem; line-height: 1.7; }

.service-list { border-top: 1px solid var(--line-strong); }
.service-row { display: grid; grid-template-columns: 70px minmax(230px, 0.82fr) minmax(340px, 1.18fr) auto; align-items: center; gap: 34px; min-height: 116px; border-bottom: 1px solid var(--line); }
.service-number { color: var(--subtle); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; }
.service-row h3 { font-size: 1.22rem; letter-spacing: -0.025em; font-weight: 650; }
.service-row p { color: var(--muted); line-height: 1.65; }
.service-stack { color: var(--accent-blue); font-size: 0.78rem; font-weight: 600; white-space: nowrap; }

.featured-project { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.7fr); gap: clamp(40px, 6vw, 96px); align-items: center; padding-bottom: 74px; }
.game-visual { position: relative; display: grid; place-items: center; min-height: 540px; overflow: hidden; border: 1px solid var(--line-strong); background: #071323; }
.game-visual::before { content: ""; position: absolute; inset: -36px; background: linear-gradient(rgba(4,10,19,0.46), rgba(4,10,19,0.72)), url("new-universe-home.jpg") center 20% / cover; filter: blur(22px) saturate(1.3); transform: scale(1.12); }
.game-visual > img { position: relative; z-index: 1; height: 90%; max-height: 500px; width: auto; border: 1px solid rgba(255,255,255,0.18); border-radius: 24px; box-shadow: 0 28px 80px rgba(0,0,0,0.48); transition: transform 220ms ease; }
.game-visual:hover > img { transform: translateY(-6px); }
.game-logo { position: absolute; z-index: 2; left: 28px; bottom: 26px; display: flex; align-items: center; gap: 14px; padding: 10px 15px 10px 10px; border: 1px solid rgba(255,255,255,0.16); border-radius: 14px; background: rgba(4, 10, 19, 0.78); backdrop-filter: blur(15px); }
.game-logo img { width: 44px; height: 44px; border-radius: 11px; }
.game-logo strong { font-size: 0.92rem; }
.featured-copy { max-width: 570px; }
.project-type { color: var(--accent); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.featured-copy h3 { margin-top: 16px; font-size: clamp(2.5rem, 4.2vw, 4.5rem); line-height: 1; letter-spacing: -0.055em; font-weight: 650; }
.featured-copy p { margin-top: 24px; color: var(--muted); font-size: 1.06rem; line-height: 1.72; }
.project-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 32px; }
.project-links a,
.project-row > a { display: inline-flex; align-items: center; gap: 9px; color: var(--accent); font-size: 0.88rem; font-weight: 700; }
.project-links a:hover,
.project-row > a:hover { color: var(--text); }
.project-links svg,
.project-row svg { width: 17px; height: 17px; }
.project-list { border-top: 1px solid var(--line-strong); }
.project-row { display: grid; grid-template-columns: minmax(230px, 0.65fr) minmax(360px, 1.25fr) auto; align-items: center; gap: 40px; min-height: 126px; border-bottom: 1px solid var(--line); }
.project-row h3 { margin-top: 7px; font-size: 1.35rem; letter-spacing: -0.03em; font-weight: 650; }
.project-row p { color: var(--muted); line-height: 1.65; }

.contact { display: grid; grid-template-columns: 1fr auto minmax(280px, 0.5fr); align-items: center; gap: 50px; padding-block: 72px; border-top: 1px solid var(--line-strong); }
.contact-copy h2 { font-size: clamp(2.5rem, 4vw, 4.4rem); line-height: 1; letter-spacing: -0.055em; font-weight: 650; }
.contact-copy p { max-width: 650px; margin-top: 18px; color: var(--muted); line-height: 1.65; }
.telegram-handle { display: inline-flex; align-items: center; gap: 13px; font-size: 1.05rem; font-weight: 650; }
.telegram-handle svg { width: 38px; height: 38px; padding: 9px; border-radius: 50%; color: var(--ink); background: var(--accent-blue); fill: currentColor; stroke: none; }
.contact-button { width: 100%; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding-block: 30px 44px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 0.82rem; }
.footer a:hover { color: var(--text); }

@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .site-header { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr); gap: 54px; }
  .service-row { grid-template-columns: 56px minmax(220px, 0.85fr) minmax(300px, 1.15fr); }
  .service-stack { grid-column: 2 / -1; padding-bottom: 24px; }
  .project-row { grid-template-columns: minmax(200px, 0.65fr) minmax(320px, 1fr) auto; }
  .contact { grid-template-columns: 1fr auto; }
  .contact-button { grid-column: 1 / -1; width: min(100%, 420px); }
}

@media (max-width: 820px) {
  :root { --gutter: 22px; }
  .site-header { min-height: 76px; }
  .header-cta { display: none; }
  .menu-button { display: block; }
  body.menu-open .nav { position: fixed; inset: 76px 18px auto; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; border: 1px solid var(--line-strong); background: rgba(4, 11, 21, 0.97); }
  body.menu-open .nav a { padding: 16px; border-bottom: 1px solid var(--line); }
  body.menu-open .nav a:last-child { border-bottom: 0; }
  .hero { grid-template-columns: 1fr; gap: 48px; min-height: auto; padding-block: 74px 78px; }
  .hero h1 { font-size: clamp(3rem, 11vw, 4.8rem); }
  .quality-panel { max-width: 620px; }
  .section-intro { grid-template-columns: 1fr; gap: 18px; }
  .section-intro p { justify-self: start; }
  .service-row { grid-template-columns: 44px 1fr; gap: 16px 20px; padding-block: 26px; }
  .service-row h3 { font-size: 1.12rem; }
  .service-row p,
  .service-stack { grid-column: 2; padding-bottom: 0; }
  .featured-project { grid-template-columns: 1fr; gap: 44px; }
  .game-visual { min-height: 500px; }
  .project-row { grid-template-columns: 1fr auto; gap: 20px; padding-block: 28px; }
  .project-row p { grid-column: 1 / -1; grid-row: 2; }
  .contact { grid-template-columns: 1fr; gap: 32px; }
  .contact-button { grid-column: auto; }
}

@media (max-width: 560px) {
  :root { --gutter: 18px; }
  .brand-text { display: none; }
  .language-switcher button span:last-child { display: none; }
  .language-switcher button { padding: 0 9px; }
  .hero { padding-top: 58px; }
  .hero h1 { font-size: clamp(2.75rem, 13vw, 3.55rem); line-height: 1.02; }
  .hero-lead { font-size: 1.06rem; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .quality-panel div { min-height: 74px; padding: 0 20px; font-size: 0.88rem; }
  .services,
  .projects { padding-block: 76px 84px; }
  .service-row { grid-template-columns: 32px 1fr; }
  .service-number { font-size: 0.68rem; }
  .game-visual { min-height: 430px; }
  .game-visual > img { max-height: 385px; border-radius: 19px; }
  .game-logo { left: 16px; bottom: 16px; }
  .featured-copy h3 { font-size: 2.65rem; }
  .project-links { flex-direction: column; gap: 18px; }
  .project-row { grid-template-columns: 1fr; }
  .project-row p,
  .project-row > a { grid-column: 1; grid-row: auto; }
  .footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
