/* === Tokens === */
:root {
  --bg: #0b1220;
  --bg-2: #0f172a;
  --bg-3: #111c33;
  --surface: #131e36;
  --surface-2: #182747;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  --text: #e6ecf5;
  --text-muted: #9aa6bd;
  --text-dim: #6f7c95;

  --accent: #00b3ff;
  --accent-2: #5cd1ff;
  --accent-soft: rgba(0, 179, 255, 0.12);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);

  --container: 1200px;
}

/* === Reset / Base === */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--accent-2); }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.18; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.15rem; }

p { margin: 0; }

/* === Layout === */
.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.section {
  padding: clamp(64px, 9vw, 120px) 0;
  position: relative;
}
.section + .section { border-top: 1px solid var(--line); }

.section-head {
  margin-bottom: 48px;
  max-width: 720px;
}
.section-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.78);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.logo:hover { color: var(--text); }
.logo-mark {
  display: inline-flex;
  color: var(--accent);
}
.logo-text {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.18em;
}

.site-nav ul {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: .96rem;
  position: relative;
  padding: 6px 0;
}
.site-nav a:hover { color: var(--text); }
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.site-nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #001a26;
  box-shadow: 0 8px 30px rgba(0, 179, 255, .35);
}
.btn-primary:hover {
  background: var(--accent-2);
  color: #001a26;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* === Hero === */
.hero {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0 clamp(80px, 11vw, 140px);
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(0, 179, 255, .18), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(92, 209, 255, .10), transparent 60%),
    linear-gradient(180deg, #0c1426 0%, var(--bg) 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: center;
}
.hero-content { max-width: 640px; }
.hero-eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 8px 14px;
  border: 1px solid var(--accent-soft);
  background: var(--accent-soft);
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  margin-bottom: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #b9c8e0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 36px;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-decor {
  position: relative;
  height: 380px;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  opacity: .55;
}
.hero-glow {
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 65%);
  filter: blur(50px);
  opacity: .45;
}

/* === About === */
.section-about { background: var(--bg); }
.prose p {
  color: var(--text-muted);
  margin-bottom: 16px;
  max-width: 78ch;
}
.prose strong { color: var(--text); font-weight: 600; }

.stats {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stats li {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.stat-num {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.stat-label {
  display: block;
  color: var(--text-muted);
  font-size: .94rem;
  line-height: 1.5;
}

/* === Services === */
.section-services {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.service-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-soft);
  box-shadow: var(--shadow);
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: .98rem; }

.services-note {
  margin-top: 36px;
  padding: 22px 26px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
  max-width: 920px;
}

/* === Contacts === */
.section-contacts { background: var(--bg-2); }
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contacts-block {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.contacts-block h3 {
  margin-bottom: 18px;
  font-size: 1.05rem;
  color: var(--text);
}
.contacts-okved { grid-column: 1 / -1; }

.info-list {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 0;
}
.info-list dt {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-dim);
  font-weight: 600;
  margin-top: 8px;
}
.info-list dt:first-of-type { margin-top: 0; }
.info-list dd {
  margin: 4px 0 0;
  font-size: 1rem;
  color: var(--text);
}
.info-list a { color: var(--accent); }

.okved-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.okved-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  color: var(--text-muted);
  font-size: .98rem;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.okved-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.okved-code {
  flex: none;
  display: inline-block;
  min-width: 64px;
  padding: 4px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 6px;
  font-weight: 700;
  font-size: .88rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* === Footer === */
.site-footer {
  background: #08111e;
  border-top: 1px solid var(--line);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.footer-brand .logo-mark { color: var(--accent); }
.footer-brand .logo-text { font-size: 1rem; }
.footer-copy {
  color: var(--text-dim);
  font-size: .9rem;
}
.footer-links {
  color: var(--text-dim);
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }

/* === Mobile menu === */
.site-nav.is-open ul { display: flex; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    inset: 72px 0 auto 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }
  .site-nav li { padding: 0; }
  .site-nav a {
    display: block;
    padding: 14px 24px;
    color: var(--text);
  }
  .site-nav a::after { display: none; }
}

/* === Responsive === */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-decor { display: none; }
  .stats { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .hero { padding: 80px 0 64px; }
  .service-card, .contacts-block { padding: 22px; }
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
