﻿:root {
  --bg:      #011428;
  --bg2:     #011E3A;
  --bg3:     #022458;
  --card:    #021636;
  --border:  #0C2E62;
  --border2: #1A4A88;
  --accent:  #5B9CF6;
  --accent2: #3EC9D6;
  --text:    #EEEDF0;
  --muted:   #4A7099;
  --dim:     #7090B8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }

body {
  background: transparent;
  color: var(--text);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── BACKGROUND CANVAS ── */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  will-change: transform;
}

.bg-orb-1 {
  width: 800px; height: 800px;
  background: rgba(30, 90, 200, 0.30);
  top: -280px; left: -180px;
  animation: orbFloat1 22s ease-in-out infinite;
}

.bg-orb-2 {
  width: 700px; height: 700px;
  background: rgba(62, 201, 214, 0.08);
  bottom: -240px; right: -180px;
  animation: orbFloat2 28s ease-in-out infinite;
}

.bg-orb-3 {
  width: 500px; height: 500px;
  background: rgba(91, 156, 246, 0.07);
  top: 38%; left: 52%;
  animation: orbFloat3 35s ease-in-out infinite;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(80,140,255,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0); }
  25%  { transform: translate(80px, 55px); }
  50%  { transform: translate(115px, 15px); }
  75%  { transform: translate(35px, 85px); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  25%  { transform: translate(-65px, -75px); }
  50%  { transform: translate(-105px, -25px); }
  75%  { transform: translate(-25px, -105px); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0); }
  33%  { transform: translate(-90px, 70px); }
  66%  { transform: translate(70px, -90px); }
}

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

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

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  background: rgba(1, 14, 30, 0.96);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
}

.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--dim);
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 7px 18px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}

.nav-cta:hover { background: #4280D8 !important; }

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px; height: 36px;
  padding: 6px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  height: 1px;
  background: var(--dim);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-burger.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile menu */
.mobile-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 150;
}

.mobile-overlay.show { display: block; }

.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(300px, 85vw);
  height: 100%;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 72px 28px 36px;
  gap: 4px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open { transform: translateX(0); }

.mobile-link {
  display: block;
  color: var(--dim);
  font-size: 0.9rem;
  padding: 12px 14px;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
}

.mobile-link:hover { background: var(--bg3); color: var(--text); }

.mobile-link-cta {
  margin-top: 20px;
  background: var(--accent);
  color: #011428;
  text-align: center;
  font-weight: 700;
}

.mobile-link-cta:hover { background: #4280D8; color: #011428; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 60px 80px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-label::before {
  content: '$';
  color: var(--accent2);
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  font-size: 0.85rem;
}

h1 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin-bottom: 20px;
  color: var(--text);
}

h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-desc {
  color: var(--dim);
  font-size: 0.9rem;
  max-width: 460px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  border: 1px solid transparent;
  font-family: inherit;
}

.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: #4280D8; border-color: #4280D8; color: #fff; }

.btn-outline { background: transparent; color: var(--dim); border-color: var(--border2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.hero-stats {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
}

.stat-item {
  flex: 1;
  padding: 20px 24px;
  border-right: 1px solid var(--border);
  text-align: center;
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-num sup { color: var(--accent); font-size: 1rem; }

.stat-label {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.3px;
}

/* Hero right panel */
.hero-panel {
  border: 1px solid var(--border2);
  background: linear-gradient(160deg, var(--card) 0%, #0f0f16 100%);
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent2) 55%, transparent);
  opacity: 0.8;
}

.hero-panel-header {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.18);
}

.panel-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
}

.panel-dot.green  { background: #2ec27e; box-shadow: 0 0 6px rgba(46,194,126,0.55); }
.panel-dot.yellow { background: #e5a50a; box-shadow: 0 0 6px rgba(229,165,10,0.45); }
.panel-dot.red    { background: #e01b24; box-shadow: 0 0 6px rgba(224,27,36,0.45); }

.hero-panel-title {
  font-size: 0.72rem;
  color: var(--dim);
  letter-spacing: 0.3px;
  margin-left: 4px;
  font-family: 'Courier New', Courier, monospace;
}

.hero-panel-body { padding: 0; }

.panel-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  border-left: 2px solid transparent;
  transition: background 0.15s, border-left-color 0.15s;
  cursor: default;
}

.panel-row:last-child { border-bottom: none; }

.panel-row:hover {
  background: rgba(255,255,255,0.02);
  border-left-color: var(--border2);
}

.panel-row-active {
  border-left-color: var(--accent2) !important;
  background: rgba(0,184,150,0.04);
}

.panel-row-icon {
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  font-family: 'Courier New', Courier, monospace;
}

.icon-erp {
  background: rgba(74,108,247,0.12);
  border: 1px solid rgba(74,108,247,0.28);
  color: var(--accent);
}

.icon-gov {
  background: rgba(0,184,150,0.1);
  border: 1px solid rgba(0,184,150,0.24);
  color: var(--accent2);
}

.panel-row-content { flex: 1; min-width: 0; }

.panel-row-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.panel-row-meta {
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  flex-shrink: 0;
  animation: liveBlink 2.4s ease-in-out infinite;
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

.panel-row-status {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 3px 9px;
  flex-shrink: 0;
  align-self: center;
}

.status-done { background: rgba(62,201,214,0.1); color: var(--accent2); border: 1px solid rgba(62,201,214,0.2); }
.status-nda  { background: rgba(62,201,214,0.08); color: var(--accent2); border: 1px solid rgba(62,201,214,0.18); }

.hero-panel-footer {
  padding: 11px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.15);
}

.panel-footer-label {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.2px;
}

.panel-footer-label strong { color: var(--dim); font-weight: 700; }

.panel-footer-sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--border2);
  flex-shrink: 0;
}

.panel-footer-online {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  color: var(--accent2);
  letter-spacing: 0.3px;
}

.panel-footer-online-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent2);
  animation: liveBlink 2.4s ease-in-out infinite;
}

/* ── SECTION SHARED ── */
section { padding: 90px 60px; }

.section-inner { max-width: 1200px; margin: 0 auto; }

.section-header { margin-bottom: 48px; }

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-label::before {
  content: '> ';
  color: var(--accent2);
  font-family: 'Courier New', Courier, monospace;
  font-weight: 400;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.section-desc {
  color: var(--dim);
  font-size: 0.85rem;
  line-height: 1.8;
}

.divider { height: 1px; background: var(--border); }

/* ── SERVICES ── */
#services { background: var(--bg2); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border);
}

.service-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 32px 22px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  cursor: default;
}

.service-card:nth-child(odd) {
  padding-right: 44px;
  border-right: 1px solid var(--border);
}

.service-card:nth-child(even) {
  padding-left: 32px;
  padding-right: 0;
}

.service-card:nth-child(7),
.service-card:nth-child(8) { border-bottom: none; }

.service-card:hover { background: rgba(255,255,255,0.018); }

.service-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border2);
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.service-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.service-desc {
  color: var(--dim);
  font-size: 0.77rem;
  line-height: 1.7;
}

/* ── CASES ── */
#cases { background: var(--bg); }

.cases-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.case-item {
  display: grid;
  grid-template-columns: 200px 1fr 210px;
  gap: 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.case-item:last-child { border-bottom: none; }
.case-item:hover { background: rgba(255,255,255,0.018); }

.case-left {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 1px;
}

.tag-green  { background: rgba(62,201,214,0.1);  color: var(--accent2);  border: 1px solid rgba(62,201,214,0.22); }
.tag-purple { background: rgba(148,91,248,0.1);  color: #b48cf5;         border: 1px solid rgba(148,91,248,0.25); }
.tag-orange { background: rgba(245,166,35,0.1);  color: #f5a623;         border: 1px solid rgba(245,166,35,0.2); }

.case-year {
  font-size: 0.72rem;
  color: var(--muted);
}

.case-center {
  padding: 28px 32px;
  border-right: 1px solid var(--border);
}

.case-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.case-desc {
  color: var(--dim);
  font-size: 0.8rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.case-bullets {
  list-style: none;
  margin: 12px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.case-bullets li {
  font-size: 0.78rem;
  color: var(--dim);
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}

.case-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.case-section-label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 16px 0 6px;
}
.case-section-label:first-of-type { margin-top: 0; }

.case-pain {
  list-style: none;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.case-pain li {
  font-size: 0.78rem;
  color: var(--dim);
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}

.case-pain li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--muted);
}

.case-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid rgba(74,108,247,0.3);
  padding: 4px 10px;
  letter-spacing: 0.3px;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
}

.case-link:hover {
  background: rgba(74,108,247,0.08);
  border-color: var(--accent);
}

.case-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.stack-tag {
  background: var(--bg3);
  color: var(--dim);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border: 1px solid var(--border);
  letter-spacing: 0.2px;
  font-family: 'Courier New', Courier, monospace;
}

.case-right {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 180px;
}

.case-meta-item { }

.meta-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

.meta-value {
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.5;
}

/* ── TECH ── */
#tech { background: var(--bg2); }

.tech-table {
  border: 1px solid var(--border);
  width: 100%;
}

.tech-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid var(--border);
}

.tech-row:last-child { border-bottom: none; }

.tech-row-label {
  padding: 20px 24px;
  border-right: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  background: var(--card);
}

.tech-row-items {
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tech-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  padding: 5px 12px;
  border: 1px solid var(--border2);
  background: var(--bg3);
  transition: border-color 0.15s, color 0.15s;
  font-family: 'Courier New', Courier, monospace;
}

.tech-tag:hover { border-color: var(--accent); color: var(--accent); }

/* ── PROCESS ── */
#process { background: var(--bg); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
}

.step {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
}

.step:last-child { border-right: none; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--border2);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1;
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}

.step-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.78rem;
  color: var(--dim);
  line-height: 1.75;
  flex: 1;
}

.step-duration {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 18px;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--accent2);
  padding: 3px 10px;
  border: 1px solid rgba(62,201,214,0.22);
  background: rgba(62,201,214,0.07);
  font-family: 'Courier New', Courier, monospace;
  align-self: flex-start;
}

.step-line {
  position: absolute;
  top: 38px; right: -1px;
  width: 1px; height: 20px;
  background: var(--accent);
  opacity: 0.5;
}

.step:last-child .step-line { display: none; }

/* ── CONTACT ── */
#contact { background: var(--bg2); }

.contact-solo {
  max-width: 540px;
}

.contact-solo h2 {
  margin-bottom: 10px;
}

.contact-solo .section-desc {
  margin-bottom: 32px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  margin-bottom: 2px;
  font-size: 0.82rem;
  transition: border-color 0.15s;
}

.contact-link:hover { border-color: var(--accent); }

.contact-link-icon {
  font-size: 1rem;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg3);
  border: 1px solid var(--border);
  flex-shrink: 0;
}


/* ── FOOTER ── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 36px 60px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.footer-brand-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.3px;
}

.footer-brand-sep {
  color: var(--border2);
  font-size: 0.8rem;
}

.footer-brand-sub {
  font-size: 0.72rem;
  color: var(--muted);
}

.footer-middle {
  display: flex;
  flex-direction: row;
  gap: 60px;
  align-items: flex-start;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 120px;
}

.footer-nav a {
  color: var(--muted);
  font-size: 0.75rem;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-nav a:hover { color: var(--text); }

.footer-requisites {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.8;
}

.footer-requisites strong {
  font-weight: 700;
  color: var(--dim);
}

.footer-bottom {
  padding-top: 14px;
}

.footer-copy { color: var(--muted); font-size: 0.72rem; }

/* ── RESPONSIVE ── */
/* 1100px: services already 2-col, no override needed */

@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  section { padding: 72px 20px; }
  .hero { padding: 88px 20px 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-panel { display: none; }
  .hero-stats { flex-direction: row; }
  .stat-item { padding: 16px 8px; }

  /* services: already 2-col desktop, stays 2-col at 900px */

  .case-item { grid-template-columns: 1fr; }
  .case-left { border-right: none; border-bottom: 1px solid var(--border); padding: 20px; }
  .case-center { border-right: none; border-bottom: 1px solid var(--border); padding: 20px; }
  .case-right { padding: 20px; flex-direction: column; gap: 14px; min-width: 0; }

  .tech-row { grid-template-columns: 155px 1fr; }

  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: none; }
  .step:nth-child(3) { border-right: 1px solid var(--border); }
  .step:nth-child(3), .step:nth-child(4) { border-top: 1px solid var(--border); }
  .step:last-child { border-right: none; }
  .step-line { display: none; }

  footer { padding: 28px 20px 20px; }
  .footer-row { flex-direction: column; gap: 28px; }
  .footer-middle { flex-direction: column; gap: 20px; }
}

@media (max-width: 600px) {
  nav { padding: 0 14px; }
  section { padding: 60px 14px; }
  .hero { padding: 76px 14px 56px; }

  h1 { font-size: clamp(1.3rem, 6vw, 1.8rem); }
  h2 { font-size: clamp(1.1rem, 5vw, 1.4rem); }

  .hero-btns { flex-direction: column; }
  .hero-btns .btn { text-align: center; justify-content: center; }

  .services-grid { grid-template-columns: 1fr; border-top: 1px solid var(--border); }
  .service-card { border-right: none !important; padding: 18px 0 !important; border-bottom: 1px solid var(--border) !important; }
  .service-card:last-child { border-bottom: none !important; }
  .service-card:nth-child(7), .service-card:nth-child(8) { border-bottom: 1px solid var(--border) !important; }

  .tech-row { grid-template-columns: 1fr; }
  .tech-row-label { border-right: none; border-bottom: 1px solid var(--border); padding: 12px 16px; }
  .tech-row-items { padding: 14px 16px; }

  .steps-grid { grid-template-columns: 1fr; }
  .step { border-right: none !important; border-bottom: 1px solid var(--border); }
  .step:last-child { border-bottom: none; }
  .step:nth-child(3), .step:nth-child(4) { border-top: none; }

  footer { padding: 24px 14px 16px; }
}

@media (max-width: 380px) {
  h1 { font-size: 1.25rem; }
}
