/* ===== MITС — Service site ===== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #070b14;
  --bg-alt: #0b1120;
  --surface: #0f1729;
  --surface-2: #131d33;
  --border: #1c2740;
  --border-bright: #2a3a5c;

  --blue-deep: #1450e0;
  --blue-mid: #2f7bf6;
  --blue-bright: #17aef8;
  --cyan: #34d3ff;

  --text: #eef2fb;
  --text-dim: #92a1c4;
  --text-faint: #56668c;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 14px;
  --container: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* Background grid texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 70%);
}

/* ===== Header ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  position: relative;
  flex-shrink: 0;
}
.brand-mark span {
  position: absolute;
  border-radius: 3px;
}
.brand-mark span:nth-child(1) { width: 20px; height: 20px; right: 0; top: 0; background: linear-gradient(135deg, var(--blue-bright), var(--blue-deep)); }
.brand-mark span:nth-child(2) { width: 9px; height: 9px; left: 4px; top: 10px; background: var(--cyan); }
.brand-mark span:nth-child(3) { width: 8px; height: 8px; left: 0; top: 20px; background: var(--cyan); opacity: 0.85; }
.brand-mark span:nth-child(4) { width: 10px; height: 10px; left: 13px; bottom: 0; background: var(--blue-mid); }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

nav.main-nav a {
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: color 0.2s ease;
  position: relative;
}
nav.main-nav a:hover { color: var(--text); }
nav.main-nav a.active { color: var(--text); }
nav.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -28px;
  height: 2px;
  background: var(--blue-bright);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.phone-link {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--text);
  white-space: nowrap;
}

.menu-toggle { display: none; }

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-deep));
  color: #04070d;
}
.btn-primary:hover { filter: brightness(1.12); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-bright);
}
.btn-ghost:hover { border-color: var(--blue-bright); background: rgba(23, 174, 248, 0.06); }

/* ===== Eyebrow / labels ===== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--blue-bright);
  border-radius: 2px;
}

/* ===== Typography ===== */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.section-lead {
  color: var(--text-dim);
  font-size: 1.08rem;
  max-width: 620px;
}

/* ===== Hero ===== */

.hero {
  position: relative;
  padding: 96px 0 120px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero p.section-lead { margin: 22px 0 34px; font-size: 1.15rem; }

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

/* Signature composition: assembling blocks */
.hero-visual {
  position: relative;
  height: 420px;
}

.block {
  position: absolute;
  border-radius: 10px;
  box-shadow: 0 30px 60px -20px rgba(20, 80, 224, 0.35);
  animation: float 7s ease-in-out infinite;
}
.block.b1 { width: 190px; height: 190px; right: 20px; top: 10px; background: linear-gradient(135deg, var(--blue-bright), var(--blue-deep)); animation-delay: 0s; }
.block.b2 { width: 84px; height: 84px; right: 230px; top: 70px; background: var(--cyan); animation-delay: 1.2s; }
.block.b3 { width: 70px; height: 70px; right: 260px; top: 200px; background: var(--cyan); opacity: 0.85; animation-delay: 2.1s; }
.block.b4 { width: 96px; height: 96px; right: 120px; bottom: 30px; background: var(--blue-mid); animation-delay: 0.6s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
  .block { animation: none; }
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 65% 40%, rgba(23,174,248,0.14), transparent 60%);
  z-index: -1;
}

/* stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-strip .stat {
  padding: 30px 28px;
  border-right: 1px solid var(--border);
}
.stat-strip .stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--blue-bright);
}
.stat .label { color: var(--text-dim); font-size: 0.9rem; margin-top: 4px; }

/* ===== Sections ===== */

section { position: relative; padding: 88px 0; z-index: 1; }
section.tight { padding: 64px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

/* ===== Service cards ===== */

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

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card:hover { border-color: var(--border-bright); transform: translateY(-3px); }

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-deep));
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon svg { width: 22px; height: 22px; }

.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--text-dim); font-size: 0.95rem; }

.service-card .price-tag {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--blue-bright);
}

/* ===== Process ===== */

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.process-item {
  padding: 30px 26px 30px 0;
  border-right: 1px solid var(--border);
  position: relative;
}
.process-item:last-child { border-right: none; }
.process-item .step-code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-faint);
  display: block;
  margin-bottom: 14px;
}
.process-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process-item p { color: var(--text-dim); font-size: 0.9rem; }

/* ===== CTA band ===== */

.cta-band {
  background: linear-gradient(120deg, var(--surface-2), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 56px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  right: -60px; top: -60px;
  background: radial-gradient(circle, rgba(23,174,248,0.18), transparent 70%);
}

/* ===== Footer ===== */

footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.footer-col a, .footer-col p {
  display: block;
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== Page header (inner pages) ===== */

.page-header {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
}
.page-header p.section-lead { margin-top: 16px; }

/* ===== Contact page ===== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.contact-info-list { display: flex; flex-direction: column; gap: 26px; }
.contact-info-item .k {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.contact-info-item .v { font-size: 1.1rem; }

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.form-field input, .form-field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--blue-bright);
}
.form-field textarea { resize: vertical; min-height: 110px; }

/* ===== About page ===== */

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.value-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.value-card .num {
  font-family: var(--font-mono);
  color: var(--blue-bright);
  font-size: 0.85rem;
  margin-bottom: 10px;
  display: block;
}

/* ===== Responsive ===== */

@media (max-width: 860px) {
  nav.main-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 280px; order: -1; }
  .card-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .process-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip .stat:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .contact-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 28px; flex-direction: column; align-items: flex-start; }
}

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 2px;
}
