/* CoFound IT styles */
:root {
  --bg: #0b0f1a;
  --card: #111729;
  --alt: #0f1424;
  --text: #e6ecff;
  --muted: #9fb1ff;
  --primary: #5b7cff;
  --primary-2: #7aa2ff;
  --accent: #25d0b8;
  --danger: #ff6b6b;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: var(--text); background: radial-gradient(1000px 800px at 20% -10%, #1a2444 0%, #0b0f1a 55%) fixed; }
img { max-width: 100%; display: block; }
a { color: var(--primary-2); text-decoration: none; transition: all 0.3s ease; }

.container { width: min(1100px, 92%); margin: 0 auto; }
.section { padding: 72px 0; }
.section.alt { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.0)); }

.site-header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px); background: rgba(11,15,26,.55); border-bottom: 1px solid rgba(255,255,255,.06); transition: all 0.3s ease; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand { font-weight: 800; letter-spacing: .3px; font-size: 1.25rem; background: linear-gradient(135deg, var(--accent), var(--primary-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
nav { display: flex; align-items: center; gap: 4px; }
nav a { margin: 0 8px; color: var(--muted); position: relative; }
nav a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.3s ease; }
nav a:hover { color: var(--text); }
nav a:hover::after { width: 100%; }

.hero { padding: 96px 0 48px; background: radial-gradient(900px 600px at 80% -20%, rgba(37,208,184,.12), rgba(37,208,184,0) 60%); }
.hero-inner { text-align: center; animation: fadeInUp 0.8s ease-out; }
.lead { color: var(--muted); font-size: 1.125rem; line-height: 1.7; max-width: 700px; margin: 0 auto; }
.metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 28px; }
.metric { background: var(--card); border: 1px solid rgba(255,255,255,.06); padding: 14px; border-radius: 12px; box-shadow: var(--shadow); color: var(--muted); transition: all 0.3s ease; cursor: default; }
.metric:hover { transform: translateY(-4px); border-color: rgba(37,208,184,.3); box-shadow: 0 15px 40px rgba(37,208,184,.2); }
.metric span { display:block; color: var(--text); font-weight: 700; font-size: 1.2rem; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; transition: all .3s ease; font-weight: 600; font-size: 0.95rem; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: white; box-shadow: 0 6px 18px rgba(123,162,255,.35); position: relative; overflow: hidden; }
.btn-primary::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent); transition: left 0.5s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(123,162,255,.5); }
.btn-primary:hover::before { left: 100%; }
.btn-secondary { background: rgba(123,162,255,.1); color: var(--primary-2); border-color: rgba(123,162,255,.2); }
.btn-secondary:hover { background: rgba(123,162,255,.2); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.2); color: var(--text); }
.btn-outline:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.4); transform: translateY(-2px); }
.btn + .btn { margin-left: 10px; }
.cta-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.cards .card { height: 100%; }

.card { background: var(--card); border: 1px solid rgba(255,255,255,.06); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); transition: all 0.3s ease; position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(91,124,255,.05), transparent); opacity: 0; transition: opacity 0.3s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(91,124,255,.3); box-shadow: 0 15px 40px rgba(0,0,0,.4); }
.card:hover::before { opacity: 1; }
.card h3 { margin-top: 4px; position: relative; z-index: 1; }

.checklist li { margin: 10px 0; }
.bullets li { margin: 8px 0; color: var(--muted); }

.steps { counter-reset: step; display: grid; gap: 10px; }
.steps li { list-style: none; background: var(--card); border: 1px solid rgba(255,255,255,.06); padding: 14px; border-radius: 12px; position: relative; transition: all 0.3s ease; padding-left: 24px; }
.steps li:hover { transform: translateX(8px); border-color: rgba(37,208,184,.3); }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: -10px; top: -10px; width: 28px; height: 28px; background: linear-gradient(135deg, var(--accent), #1ea88e); color: #042019; border-radius: 50%; display: grid; place-items: center; font-weight: 800; box-shadow: 0 4px 12px rgba(37,208,184,.4); }

.pricing .price { text-align: center; }
.price-num { font-size: 1.2rem; font-weight: 800; color: var(--accent); }

.calc { margin-top: 22px; }
.calc label { display: block; margin-bottom: 10px; color: var(--muted); }
.calc input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: #0c1327; color: var(--text); }
.calc-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 10px; }
.calc-grid .total { grid-column: span 2; border-top: 1px dashed rgba(255,255,255,.15); padding-top: 10px; }

.deck { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.slide { min-height: 140px; }

.accordion details { background: var(--card); border: 1px solid rgba(255,255,255,.06); padding: 12px 16px; border-radius: 12px; margin-bottom: 10px; transition: all 0.3s ease; }
.accordion details:hover { border-color: rgba(91,124,255,.3); }
.accordion details[open] { border-color: var(--primary); background: linear-gradient(135deg, rgba(91,124,255,.08), transparent); }
.accordion summary { cursor: pointer; font-weight: 600; transition: color 0.3s ease; user-select: none; }
.accordion summary:hover { color: var(--primary-2); }

.cta { text-align: center; background: radial-gradient(600px 400px at 50% -20%, rgba(91,124,255,.22), rgba(91,124,255,0) 60%); }

.site-footer { border-top: 1px solid rgba(255,255,255,.08); background: rgba(11,15,26,.6); }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.foot-links a { margin-left: 12px; color: var(--muted); }

/* Layout tweaks */
h1, h2, h3 { margin: 8px 0 10px; }
h1 { font-size: 2.5rem; line-height: 1.2; font-weight: 800; background: linear-gradient(135deg, var(--text), var(--muted)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
h2 { font-size: 2rem; font-weight: 700; }
p { color: #d6defd; line-height: 1.6; }
ul { padding-left: 18px; }

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Улучшенный input */
.calc input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91,124,255,.15);
}

/* Responsive */
@media (max-width: 920px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .deck { grid-template-columns: 1fr 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  nav a { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
}

/* Print for PDF */
@media print {
  nav, .cta-row a#copyLink, #contactBtn, #printBtn { display: none !important; }
  body { background: white; color: #222; }
  .site-header, .site-footer { background: white !important; border: none; }
  .card, .metric, .accordion details { box-shadow: none; border: 1px solid #ddd; }
}
