/* IT Solutions — B2B MVP. Vanilla CSS, mobile-first. */

:root {
  --bg: #0b1220;
  --bg-alt: #101a2e;
  --surface: #16223b;
  --surface-2: #1c2c4a;
  --border: #24365a;
  --text: #e8edf7;
  --text-dim: #a9b6cf;
  --accent: #3aa0ff;
  --accent-2: #5fe0c0;
  --radius: 10px;
  --maxw: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,18,32,0.9);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  min-height: 44px;
}
.logo { font-weight: 700; font-size: 1.05rem; color: var(--text); letter-spacing: -0.01em; }
.logo span { color: var(--accent); }
.nav-links { display: none; gap: 22px; }
.nav-links a { color: var(--text-dim); font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
@media (min-width: 880px) {
  .nav-links { display: flex; align-items: center; }
}

.lang-switch {
  display: flex; gap: 4px; border: 1px solid var(--border); border-radius: 999px; padding: 3px;
}
.lang-switch a {
  padding: 5px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  color: var(--text-dim);
}
.lang-switch a.active { background: var(--accent); color: #06172c; }
.lang-switch a:hover { text-decoration: none; color: var(--text); }

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

/* On mobile, the header's own primary CTA is hidden — it lives inside the
   hamburger drawer instead, so the compact bar never gets crowded by a
   large button. Desktop shows it inline as before. */
.header-actions > a.btn { display: none; }
@media (min-width: 880px) {
  .header-actions > a.btn { display: inline-block; }
}

/* Hamburger toggle — mobile only */
.hamburger {
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  width: 40px; height: 40px; padding: 0; border: 1px solid var(--border); border-radius: 8px;
  background: transparent; cursor: pointer;
}
.hamburger span {
  display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--text);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 880px) {
  .hamburger { display: none; }
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--border);
  padding: 10px 20px 16px;
  background: var(--bg);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: var(--text-dim); padding: 10px 4px; font-size: 0.98rem; }
.mobile-nav a:hover { color: var(--text); text-decoration: none; }
.mobile-nav a.btn { margin-top: 10px; color: #06172c; }
@media (min-width: 880px) {
  .mobile-nav { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #06172c; }
.btn-primary:hover { background: #57adff; text-decoration: none; }
.btn-outline { border-color: var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn-block { display: block; width: 100%; text-align: center; }

/* Hero */
.hero { padding: 64px 0 56px; border-bottom: 1px solid var(--border); }
.hero h1 {
  font-size: 2.1rem; line-height: 1.18; margin: 0 0 18px; letter-spacing: -0.01em;
  max-width: 780px;
}
.hero p.lead { font-size: 1.08rem; color: var(--text-dim); max-width: 640px; margin: 0 0 30px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 700px) {
  .hero h1 { font-size: 2.7rem; }
}

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 0 34px; }
.section-head .kicker {
  color: var(--accent-2); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; margin: 0 0 8px;
}
.section-head h2 { font-size: 1.7rem; margin: 0 0 10px; letter-spacing: -0.01em; }
.section-head p { color: var(--text-dim); margin: 0; }

/* Service cards grid */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }
@media (min-width: 900px) { .grid.cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 22px 20px;
}
.card h3 { margin: 10px 0 8px; font-size: 1.08rem; }
.card p { color: var(--text-dim); font-size: 0.92rem; margin: 0 0 12px; }
.card ul { margin: 0; padding: 0; list-style: none; color: var(--text-dim); font-size: 0.88rem; }
.card ul li { padding: 3px 0 3px 18px; position: relative; }
.card ul li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.card .icon {
  width: 40px; height: 40px; border-radius: 8px; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.card h3 { margin-top: 0; }
.tech-line {
  margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--border);
  font-size: 0.78rem; letter-spacing: 0.01em; color: var(--text-dim);
}

/* Business-problem cards ("Когда мы можем помочь") — compact, no icon/list,
   just a named problem + how we address it. */
.problem-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px;
}
.problem-card h3 { margin: 0 0 8px; font-size: 1.02rem; }
.problem-card p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }

/* small muted disclaimers/notes used across services + solutions */
.note { margin-top: 10px; font-size: 0.82rem; color: var(--text-dim); }
.hero-note { margin-top: 22px; }

/* Solution-scenario intro line + outcome line */
.scenario-lead { color: var(--text-dim); font-size: 0.92rem; margin: 0 0 14px; }
.scenario .result { margin: 14px 0 0; font-size: 0.9rem; color: var(--text); }
.scenario .result strong { color: var(--accent-2); }

/* IT Audit deliverables list */
.audit-deliverable { margin-top: 34px; }
.audit-deliverable h4 { margin: 0 0 12px; font-size: 1.02rem; }
.deliverable-list { margin: 0; padding: 0; list-style: none; columns: 1; }
@media (min-width: 640px) { .deliverable-list { columns: 2; column-gap: 24px; } }
.deliverable-list li {
  padding: 5px 0 5px 20px; position: relative; color: var(--text-dim); font-size: 0.92rem;
}
.deliverable-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); }

/* Solutions / scenarios */
.scenario {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.scenario h3 { margin: 0 0 14px; font-size: 1.1rem; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-dim); }
.flow .node {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px;
  padding: 5px 10px; color: var(--text);
}
.flow .arrow { color: var(--accent); }

/* Audit steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative; padding: 0 0 22px 46px; border-left: 1px solid var(--border);
  margin-left: 16px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: -16px; top: -2px;
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #06172c;
  font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
.steps h4 { margin: 0 0 4px; font-size: 1rem; }
.steps p { margin: 0; color: var(--text-dim); font-size: 0.9rem; }

/* Why us */
.why-list { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .why-list { grid-template-columns: 1fr 1fr; } }
.why-item { display: flex; gap: 12px; align-items: flex-start; }
.why-item .dot {
  flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 8px;
}
.why-item h4 { margin: 0 0 4px; font-size: 0.98rem; }
.why-item p { margin: 0; color: var(--text-dim); font-size: 0.88rem; }

/* Contact form */
.contact-wrap { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-wrap { grid-template-columns: 1fr 1.2fr; } }
.form-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-family: inherit; font-size: 0.95rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); }
.field-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--text-dim); }
.field-check input { width: auto; margin-top: 3px; }
.hp { position: absolute; left: -9999px; top: -9999px; }
#form-msg { margin-top: 14px; font-size: 0.9rem; }
#form-msg.ok { color: var(--accent-2); }
#form-msg.err { color: #ff8a8a; }

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border); padding: 34px 0; color: var(--text-dim); font-size: 0.85rem;
}
footer.site-footer a { color: var(--text-dim); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }

/* 404 */
.error-page { text-align: center; padding: 110px 0; }
.error-page h1 { font-size: 3rem; margin: 0 0 10px; }

/* Utility */
.mt-0 { margin-top: 0; }
.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--accent-2); background: rgba(95,224,192,0.08);
  border: 1px solid rgba(95,224,192,0.25); border-radius: 6px; padding: 3px 8px; margin-bottom: 10px;
}
