:root {
  --ink: #07111f;
  --ink-2: #0b1628;
  --muted: #526173;
  --line: #d9e3ef;
  --line-dark: rgba(255, 255, 255, 0.14);
  --blue: #115ee9;
  --blue-2: #0ea5e9;
  --green: #22c55e;
  --green-2: #86efac;
  --white: #ffffff;
  --soft: #f6f9fd;
  --shadow: 0 24px 70px rgba(7, 17, 31, 0.18);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(217, 227, 239, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 210px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 650;
}

.nav a {
  color: #1c2a3d;
}

.nav a:hover,
.footer-links a:hover {
  color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--blue);
  color: var(--white);
}

.button-primary:hover {
  background: #0b4fd1;
}

.button-secondary {
  color: var(--ink);
  border-color: #9db0c7;
  background: var(--white);
}

.button-dark {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  background: transparent;
}

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(560px, 1.18fr);
  min-height: 690px;
  align-items: center;
  gap: 42px;
}

.hero-copy {
  padding: 84px 0 72px;
}

.hero h1 {
  margin: 0;
  max-width: 650px;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero h1 span {
  color: var(--blue);
}

.hero-copy p {
  max-width: 620px;
  margin: 26px 0 0;
  color: #334155;
  font-size: 17px;
}

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

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
  max-width: 650px;
}

.point strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.point span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  align-self: stretch;
  position: relative;
  display: flex;
  align-items: center;
  padding: 38px 0;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0 -120px 0 0;
  background:
    radial-gradient(circle at 75% 10%, rgba(14, 165, 233, 0.34), transparent 34%),
    linear-gradient(135deg, #07111f 0%, #0c1a2c 55%, #07111f 100%);
  border-bottom-left-radius: 28px;
  z-index: -2;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0 -80px 0 6%;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(90deg, transparent 0%, black 28%, black 78%, transparent 100%);
  z-index: -1;
}

.dashboard {
  width: 100%;
  color: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.76);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dashboard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-dark);
}

.dashboard-top strong {
  font-size: 15px;
}

.dashboard-top span {
  color: #b9c6d8;
  font-size: 12px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 16px 20px 10px;
}

.metric {
  padding: 14px;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
}

.metric span {
  display: block;
  color: #9fb0c6;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.metric strong {
  display: block;
  margin-top: 4px;
  font-size: 23px;
  line-height: 1;
}

.metric em {
  display: block;
  margin-top: 7px;
  color: var(--green-2);
  font-size: 12px;
  font-style: normal;
}

.chart-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(190px, 0.6fr);
  gap: 12px;
  padding: 0 20px 16px;
}

.chart-card,
.geo-card {
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
}

.chart-card h3,
.geo-card h3 {
  margin: 0 0 12px;
  font-size: 13px;
}

.trend {
  height: 126px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.bar {
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--green) 0%, var(--blue-2) 100%);
  min-height: 18px;
}

.geo-list {
  display: grid;
  gap: 9px;
}

.geo-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #d8e2ef;
  font-size: 12px;
}

.geo-list span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--blue-2);
}

.geo-list div:nth-child(2) span,
.geo-list div:nth-child(4) span {
  background: var(--green);
}

.game-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 0 20px 20px;
}

.game-card {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
}

.game-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.game-card div {
  padding: 10px;
}

.game-card strong {
  display: block;
  font-size: 12px;
}

.game-card span {
  display: block;
  margin-top: 3px;
  color: #9fb0c6;
  font-size: 11px;
}

.trust-bar {
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
}

.trust-item {
  padding: 24px 18px;
  border-left: 1px solid var(--line);
}

.trust-item:first-child {
  border-left: 0;
}

.trust-item strong {
  display: block;
  font-size: 22px;
}

.trust-item span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 86px 0;
}

.section-soft {
  background: var(--soft);
}

.section-dark {
  color: var(--white);
  background: var(--ink);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p,
.page-hero p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.section-dark .section-heading p,
.section-dark .muted {
  color: #b9c6d8;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.service {
  padding: 0 22px 0 0;
  border-right: 1px solid var(--line);
}

.service:last-child {
  border-right: 0;
}

.icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--blue);
  background: #edf5ff;
  font-weight: 850;
  font-size: 20px;
}

.service h3,
.advantage h3,
.text-card h3 {
  margin: 18px 0 10px;
  font-size: 21px;
  line-height: 1.2;
}

.service p,
.advantage p,
.text-card p,
.policy-block p,
.policy-block li {
  color: var(--muted);
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.advantage,
.text-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
}

.advantage .icon {
  color: var(--green);
  background: #edfff4;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.portfolio-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.portfolio-card div {
  padding: 14px;
}

.portfolio-card strong {
  display: block;
}

.portfolio-card span {
  color: #b9c6d8;
  font-size: 13px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 34px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.contact-list strong {
  display: block;
}

.contact-list span,
.contact-list a {
  color: var(--muted);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(7, 17, 31, 0.08);
}

.field {
  display: grid;
  gap: 7px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label {
  color: #263548;
  font-size: 13px;
  font-weight: 750;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfdbea;
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

.field textarea {
  min-height: 116px;
  resize: vertical;
}

.contact-form .button {
  grid-column: 1 / -1;
}

.site-footer {
  color: #d7e2ef;
  background: var(--ink);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 40px;
}

.footer-logo {
  width: 220px;
  filter: brightness(0) invert(1);
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 15px;
}

.footer-grid p,
.footer-grid address {
  margin: 0;
  color: #a9b8ca;
  font-style: normal;
  font-size: 14px;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  color: #91a2b7;
  font-size: 13px;
}

.page-hero {
  padding: 78px 0 60px;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 52%, #eef6ff 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero .container {
  max-width: 920px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 44px;
}

.policy-stack {
  display: grid;
  gap: 24px;
}

.policy-block {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.policy-block h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.policy-block ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.split-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.active-link {
  color: var(--blue) !important;
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    padding: 0 0 54px;
  }

  .hero-visual::before {
    inset: 0 -24px;
    border-radius: 18px 18px 0 0;
  }

  .metrics,
  .game-strip,
  .portfolio-grid,
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-grid,
  .advantage-grid {
    grid-template-columns: 1fr;
  }

  .service {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 22px;
  }
}

@media (max-width: 840px) {
  .container {
    width: min(100% - 32px, var(--max));
  }

  .header-inner {
    min-height: 72px;
  }

  .brand img {
    width: 178px;
  }

  .menu-button {
    display: block;
  }

  .nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 20px 46px rgba(7, 17, 31, 0.16);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px;
  }

  .header-actions .button {
    display: none;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .hero-copy {
    padding: 58px 0 42px;
  }

  .hero-points,
  .metrics,
  .chart-row,
  .game-strip,
  .trust-grid,
  .portfolio-grid,
  .contact-panel,
  .footer-grid,
  .content-grid,
  .split-cards {
    grid-template-columns: 1fr;
  }

  .dashboard {
    border-radius: 8px;
  }

  .trust-item {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .section {
    padding: 64px 0;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .dashboard-top,
  .metrics,
  .chart-row,
  .game-strip {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-visual::before {
    inset: 0 -16px;
  }
}
