/* ── Design Tokens ── */
:root {
  --ac:        #2563eb;
  --ac-dark:   #1d4ed8;
  --ac-bg:     #eff6ff;
  --ac-light:  #dbeafe;
  --bg:        #f8faff;
  --surface:   #ffffff;
  --text:      #0f172a;
  --muted:     #64748b;
  --border:    #e2e8f0;
  --radius-card:   10px;
  --radius-btn:    6px;
  --radius-tag:    999px;
  --shadow-card:   0 1px 3px rgba(16,24,40,.05), 0 4px 12px rgba(16,24,40,.04);
  --shadow-demo:   0 4px 24px rgba(37,99,235,.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ── Header Top Bar ── */
.header-top {
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
  padding: 6px 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
}
.header-top a { color: var(--muted); text-decoration: none; transition: color .15s; }
.header-top a:hover { color: var(--text); }
.header-top-sep { color: var(--border); }
.header-top-social { display: flex; gap: 8px; margin-left: auto; }
.header-top-social a {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--muted); text-decoration: none; transition: all .15s;
}
.header-top-social a:hover { background: var(--ac); color: #fff; }

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 34px; width: auto; }

.nav-links { display: flex; gap: 24px; }
.nav-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.nav-links a:hover { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-phone {
  font-size: 14px; font-weight: 700; color: var(--text);
  text-decoration: none; transition: color .15s;
}
.nav-phone:hover { color: var(--ac); }

/* ── Buttons ── */
.btn { display: inline-block; border: none; cursor: pointer; font-size: 13px; font-weight: 600; border-radius: var(--radius-btn); transition: background .15s, opacity .15s, border-color .15s, color .15s; text-decoration: none; }
.btn-primary { background: var(--ac); color: #fff; padding: 9px 20px; }
.btn-primary:hover { background: var(--ac-dark); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1.5px solid var(--border); padding: 8px 20px; }
.btn-secondary:hover { border-color: var(--ac); color: var(--ac); }
.btn-sm { font-size: 12px; padding: 7px 14px; }

/* ── Hero ── */
.hero {
  background: linear-gradient(160deg, #f0f7ff 0%, #e0edff 50%, var(--bg) 100%);
  padding: 72px 40px 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero > * { position: relative; }

.hero-badge {
  display: inline-block;
  background: var(--ac-light);
  color: var(--ac-dark);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-tag);
  margin-bottom: 16px;
  letter-spacing: .3px;
}

.hero h1 {
  font-size: 40px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -.5px;
}
.hero h1 span { color: var(--ac); }

.hero-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Features strip ── */
.features {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
}
.features-row { display: flex; }
.feat {
  flex: 1; display: flex; align-items: center;
  gap: 10px; padding: 14px 20px;
  border-right: 1px solid var(--border);
}
.feat:last-child { border-right: none; }
.feat-icon { font-size: 18px; flex-shrink: 0; }
.feat-title { font-size: 12px; font-weight: 600; color: var(--text); }
.feat-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }

/* ── Sections ── */
.section { padding: 56px 40px; }
.section-alt { background: var(--surface); }
.section-label {
  font-size: 11px; font-weight: 700; color: var(--ac);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px;
}
.section-title { font-size: 26px; font-weight: 800; color: var(--text); margin-bottom: 8px; letter-spacing: -.3px; }
.section-sub { font-size: 14px; color: var(--muted); margin-bottom: 28px; max-width: 540px; }

/* ── Demo frame ── */
.demo-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; gap: 12px;
}
.demo-header-left { flex: 1; }
.demo-controls { display: flex; gap: 8px; }
.demo-ctrl-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; color: var(--muted);
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-btn); padding: 6px 12px;
  cursor: pointer; text-decoration: none; transition: all .15s;
  white-space: nowrap;
}
.demo-ctrl-btn:hover { color: var(--ac); border-color: var(--ac); }
.demo-ctrl-btn svg { width: 13px; height: 13px; flex-shrink: 0; }

.demo-wrap {
  background: var(--surface);
  border: 1.5px solid var(--ac-light);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-demo);
}
.demo-topbar {
  background: #f8f9fb;
  border-bottom: 1px solid var(--border);
  padding: 7px 12px;
  display: flex; align-items: center; gap: 8px;
}
.demo-topbar .demo-controls { gap: 6px; flex-shrink: 0; }
.demo-topbar .demo-ctrl-btn { padding: 4px 10px; font-size: 11px; }
.demo-dots { display: flex; gap: 5px; }
.demo-dot { width: 10px; height: 10px; border-radius: 50%; }
.demo-dot:nth-child(1) { background: #ff5f57; }
.demo-dot:nth-child(2) { background: #febc2e; }
.demo-dot:nth-child(3) { background: #28c840; }
.demo-url {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: 5px; padding: 4px 12px; font-size: 11px; color: var(--muted);
  margin: 0 8px;
}
.demo-live {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; color: var(--ac); font-weight: 600;
}
.demo-live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ac);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.4} }
.demo-iframe { width: 100%; height: 520px; border: none; display: block; }

/* ── App catalog ── */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .15s, box-shadow .15s;
  display: flex; flex-direction: column;
}
.app-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.09); }

/* ── Screenshot area ── */
.app-screenshot {
  height: 160px; overflow: hidden; position: relative;
  background: var(--bg); flex-shrink: 0;
}

/* CRM dashboard screenshot */
.scr-crm { background: linear-gradient(180deg, #f0f7ff 0%, #e8f0fe 100%); padding: 10px 12px; }
.scr-kpi-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-bottom: 10px; }
.scr-kpi {
  background: var(--surface); border-radius: 6px; padding: 6px 8px;
  border: 1px solid var(--border); text-align: center;
}
.scr-kpi-val { font-size: 13px; font-weight: 800; color: var(--text); }
.scr-kpi-label { font-size: 8px; color: var(--muted); }
.scr-chart-row { display: flex; align-items: flex-end; gap: 5px; height: 64px; }
.scr-bar {
  flex: 1; border-radius: 3px 3px 0 0;
  background: var(--ac); opacity: .7;
}
.scr-bar:nth-child(2n) { background: var(--ac-dark); opacity: .5; }
.scr-bar-active { opacity: 1 !important; }

/* Planner screenshot */
.scr-planner { background: #f0fdf4; padding: 10px 12px; }
.scr-cal-header { display: flex; gap: 4px; margin-bottom: 6px; }
.scr-cal-day {
  flex: 1; text-align: center; font-size: 8px; font-weight: 700;
  color: var(--muted); padding: 3px 0;
}
.scr-task-list { display: flex; flex-direction: column; gap: 5px; }
.scr-task {
  background: var(--surface); border-radius: 5px; padding: 5px 8px;
  font-size: 9px; color: var(--text); border-left: 3px solid var(--border);
  display: flex; align-items: center; gap: 6px;
}
.scr-task.done { border-left-color: #10b981; color: var(--muted); text-decoration: line-through; }
.scr-task.active { border-left-color: var(--ac); font-weight: 600; }
.scr-task-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); flex-shrink: 0; }
.scr-task.done .scr-task-dot { background: #10b981; }
.scr-task.active .scr-task-dot { background: var(--ac); }

/* AI screenshot */
.scr-ai { background: #fafafa; padding: 12px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.scr-msg { max-width: 70%; border-radius: 10px; padding: 6px 10px; font-size: 9px; line-height: 1.4; }
.scr-msg.left { background: #f1f5f9; color: var(--text); border-bottom-left-radius: 2px; align-self: flex-start; }
.scr-msg.right { background: var(--ac); color: #fff; border-bottom-right-radius: 2px; align-self: flex-end; }
.scr-input-row { display: flex; gap: 6px; margin-top: 4px; }
.scr-input { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 4px 10px; font-size: 8px; color: var(--muted); }
.scr-send { width: 22px; height: 22px; border-radius: 50%; background: var(--ac); display: flex; align-items: center; justify-content: center; font-size: 9px; }

/* ── Card body ── */
.app-body { padding: 14px 16px; flex: 1; }
.app-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.app-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ── Card meta (price / срок / часы) ── */
.app-meta {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.app-meta-item { padding: 8px 12px; border-right: 1px solid var(--border); }
.app-meta-item:last-child { border-right: none; }
.app-meta-label { font-size: 9px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.app-meta-value { font-size: 12px; font-weight: 700; color: var(--text); margin-top: 2px; }

/* ── Card footer ── */
.app-footer {
  padding: 10px 12px;
  display: flex; gap: 8px; align-items: center;
}
.app-footer .btn { flex: 1; text-align: center; font-size: 11px; padding: 7px 10px; }
.app-tag {
  font-size: 10px; font-weight: 600;
  background: var(--ac-bg); color: var(--ac-dark);
  padding: 2px 8px; border-radius: var(--radius-tag);
  white-space: nowrap;
}

/* ── CTA ── */
.cta {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, var(--ac) 100%);
  padding: 72px 40px;
  text-align: center;
}
.cta h2 { font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.cta p { font-size: 15px; color: rgba(255,255,255,.75); margin-bottom: 36px; }
.cta-form { display: flex; gap: 10px; justify-content: center; max-width: 420px; margin: 0 auto; }
.cta-input {
  flex: 1; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius-btn); padding: 12px 16px;
  font-size: 14px; color: #fff; outline: none; transition: border-color .15s;
}
.cta-input::placeholder { color: rgba(255,255,255,.5); }
.cta-input:focus { border-color: rgba(255,255,255,.7); }
.cta-btn {
  background: #fff; color: var(--ac-dark); border: none;
  border-radius: var(--radius-btn); padding: 12px 24px;
  font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: opacity .15s;
}
.cta-btn:hover { opacity: .9; }

/* ── Footer ── */
.site-footer { background: #0f172a; }
.footer-main-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 40px; padding: 48px 40px 32px;
  border-bottom: 1px solid #1e293b;
}
.footer-address h3 { font-size: 14px; font-weight: 700; color: #f1f5f9; margin-bottom: 8px; }
.footer-address p { font-size: 12px; color: #64748b; line-height: 1.9; }
.footer-contact { text-align: right; }
.footer-phone {
  font-size: 22px; font-weight: 800; color: #f1f5f9;
  text-decoration: none; display: block; margin-bottom: 4px;
}
.footer-phone:hover { color: var(--ac); }
.footer-email { font-size: 13px; color: #60a5fa; text-decoration: none; }
.footer-email:hover { color: #93c5fd; }
.footer-contact-note { font-size: 11px; color: #475569; margin-top: 6px; }

.footer-nav-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; padding: 32px 40px;
  border-bottom: 1px solid #1e293b;
}
.footer-col h4 {
  font-size: 10px; font-weight: 700; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px;
}
.footer-col a {
  display: block; font-size: 13px; color: #475569;
  text-decoration: none; margin-bottom: 8px; transition: color .15s;
}
.footer-col a:hover { color: #f1f5f9; }

.footer-bottom-row {
  padding: 16px 40px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom-links a { font-size: 11px; color: #334155; text-decoration: none; transition: color .15s; }
.footer-bottom-links a:hover { color: #94a3b8; }
.footer-copy { font-size: 11px; color: #475569; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 28px; height: 28px; border-radius: 6px;
  background: #1e293b; display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #64748b; text-decoration: none; transition: all .15s;
}
.footer-social a:hover { background: var(--ac); color: #fff; }

/* ── Pain blocks (used on main + pult24 page) ── */
.pain-section { padding: 64px 40px; background: var(--surface); border-bottom: 1px solid var(--border); }
.pain-head { text-align: center; margin-bottom: 36px; max-width: 680px; margin-left: auto; margin-right: auto; }
.pain-head .section-label { margin-bottom: 8px; }
.pain-head h2 { font-size: 30px; font-weight: 800; color: var(--text); letter-spacing: -.5px; margin-bottom: 10px; line-height: 1.2; }
.pain-head p { font-size: 15px; color: var(--muted); line-height: 1.65; }

.pain-blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.pain-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px 26px;
  display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s;
}
.pain-block:hover { border-color: var(--ac-light); transform: translateY(-2px); }
.pain-block-1 { border-top: 3px solid #6366f1; }
.pain-block-2 { border-top: 3px solid #ef4444; }
.pain-block-3 { border-top: 3px solid #f59e0b; }

.pain-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 18px;
}
.pain-block-1 .pain-icon { background: #eef2ff; }
.pain-block-2 .pain-icon { background: #fef2f2; }
.pain-block-3 .pain-icon { background: #fef3c7; }

.pain-block-title { font-size: 17px; font-weight: 800; color: var(--text); margin-bottom: 6px; letter-spacing: -.2px; }
.pain-block-sub { font-size: 12px; color: var(--muted); margin-bottom: 18px; line-height: 1.5; }
.pain-points { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; flex: 1; }
.pain-point {
  font-size: 13px; color: var(--text); line-height: 1.5;
  padding-left: 18px; position: relative;
}
.pain-point::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 10px; height: 2px; background: var(--ac); border-radius: 2px;
}
.pain-block-quote {
  font-size: 12px; font-style: italic; color: var(--muted);
  padding-top: 16px; border-top: 1px solid var(--border); line-height: 1.5;
}

@media (max-width: 900px) {
  .pain-section { padding: 44px 20px; }
  .pain-head h2 { font-size: 24px; }
  .pain-blocks { grid-template-columns: 1fr; gap: 14px; }
  .pain-block { padding: 22px 20px; }
}

/* ── App page (pult24.html) ── */
.app-page-hero {
  background: linear-gradient(160deg, #f0f7ff 0%, #e0edff 60%, var(--bg) 100%);
  padding: 60px 40px 48px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.app-page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.app-page-hero > * { position: relative; }
.app-page-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.app-page-title { font-size: 34px; font-weight: 800; color: var(--text); letter-spacing: -.5px; margin-bottom: 10px; }
.app-page-sub { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 24px; max-width: 560px; }
.app-page-features { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.app-feature-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text); }
.app-feature-check { color: var(--ac); font-size: 15px; flex-shrink: 0; margin-top: 1px; }

.app-page-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 24px; box-shadow: var(--shadow-card);
}
.app-page-card-title { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px; }
.app-price { font-size: 28px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.app-price-note { font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.app-specs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; border-top: 1px solid var(--border); padding-top: 16px; }
.app-spec-row { display: flex; justify-content: space-between; font-size: 12px; }
.app-spec-label { color: var(--muted); }
.app-spec-value { font-weight: 600; color: var(--text); }
.app-page-btns { display: flex; flex-direction: column; gap: 8px; }
.app-page-btns .btn { text-align: center; width: 100%; padding: 11px 20px; }

.app-demo-section { padding: 48px 40px; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .app-page-layout { grid-template-columns: 1fr; }
  .app-page-card { max-width: 400px; }
}

@media (max-width: 900px) {
  .header-top { display: none; }
  .navbar { padding: 0 20px; height: 56px; }
  .nav-links { display: none; }
  .nav-phone { display: none; }
  .hero { padding: 52px 20px 44px; }
  .hero h1 { font-size: 28px; }
  .section { padding: 40px 20px; }
  .features { padding: 0 20px; }
  .features-row { flex-wrap: wrap; }
  .feat { flex: 1 1 48%; padding: 12px 10px; gap: 8px; border-bottom: 1px solid var(--border); }
  .feat:nth-child(odd) { border-right: 1px solid var(--border); }
  .feat:nth-child(even) { border-right: none; }
  .feat:nth-last-child(-n+2) { border-bottom: none; }
  .feat-sub { display: none; }
  .app-grid { grid-template-columns: 1fr; }
  .cta { padding: 48px 20px; }
  .cta-form { flex-direction: column; }
  .demo-iframe { height: 380px; }
  .demo-topbar { flex-wrap: wrap; gap: 6px; }
  .demo-url { min-width: 0; }
  .demo-topbar .demo-controls { order: 3; width: 100%; justify-content: flex-end; }
  .footer-main-row { flex-direction: column; padding: 32px 20px 24px; }
  .footer-contact { text-align: left; }
  .footer-phone { font-size: 18px; }
  .footer-nav-row { grid-template-columns: repeat(2,1fr); padding: 24px 20px; }
  .footer-bottom-row { padding: 14px 20px; flex-direction: column; align-items: flex-start; }
  .app-demo-section { padding: 32px 20px; }
  .app-page-hero { padding: 40px 20px 36px; }
  .app-page-card { max-width: 100%; }
}

@media (max-width: 480px) {
  .navbar .btn { font-size: 12px; padding: 8px 14px; }
  .hero h1 { font-size: 24px; }
  .hero-sub { font-size: 14px; }
  .hero-btns .btn { flex: 1 1 100%; text-align: center; }
  .section-title { font-size: 22px; }
  .cta h2 { font-size: 22px; }
  .footer-nav-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .app-page-title { font-size: 26px; }
}
