/* Central Prime — web.centralprime.ru
   Чёрно-белая, геометричная, минималистичная дизайн-система */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f5f5f5;
  --bg-alt: #ececec;
  --ink: #0c0c0c;
  --ink-soft: #4a4a4a;
  --ink-faint: #8a8a8a;
  --line: rgba(12,12,12,.13);
  --line-strong: #0c0c0c;
  --white: #ffffff;
  --maxw: 1160px;
  --radius: 3px;
  --ease: cubic-bezier(.16,.84,.44,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  border: 1.5px solid var(--line-strong);
  transition: transform .25s var(--ease), background .25s, color .25s;
  cursor: pointer;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { transform: translateY(-2px); background: #2a2a2a; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { transform: translateY(-2px); background: var(--ink); color: var(--white); }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { height: 64px; width: auto; object-fit: contain; flex-shrink: 0; mix-blend-mode: darken; }
.logo-word {
  font-weight: 800;
  font-size: 16.5px;
  letter-spacing: -.01em;
  line-height: 1.1;
}
.logo-word span { display: block; }

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245,245,245,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}
nav.main { display: flex; align-items: center; gap: 22px; }
nav.main a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color .2s;
}
nav.main a:hover { color: var(--ink); }
.nav-toggle { display: none; }

/* Hero */
.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}
.hero-single .wrap { grid-template-columns: 1fr; }
.hero h1 {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.04;
  margin-top: 18px;
}
.hero h1 em {
  font-style: normal;
  border-bottom: 5px solid var(--ink);
}
.hero .lead {
  margin-top: 22px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero .cta-row {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero .trust {
  margin-top: 40px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.hero .trust div { font-size: 13px; color: var(--ink-faint); }
.hero .trust strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
}

.mock {
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 14px 14px 0 var(--ink);
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.mock-bar span {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1.3px solid var(--ink);
}
.mock-screen { height: 380px; overflow: hidden; background: #161616; }
.mock-screen iframe {
  width: 1280px; height: 900px; border: 0;
  transform-origin: 0 0; pointer-events: none;
}
.mock-cap {
  display: block; padding: 12px 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-soft);
  border-top: 1px solid var(--line); background: var(--white);
}
.mock-cap:hover { color: var(--ink); }
.mock-body {
  padding: 46px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.mock-body .logo-mark { height: 90px; width: auto; object-fit: contain; }
.mock-body .bar { height: 9px; background: var(--bg-alt); border-radius: 3px; }
.mock-body .bar.w1 { width: 70%; }
.mock-body .bar.w2 { width: 46%; }
.mock-body .btn-fake {
  margin-top: 8px;
  padding: 9px 22px;
  border: 1.3px solid var(--ink);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
}

/* Section generic */
section { padding: 88px 0; border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  margin-top: 14px;
  line-height: 1.1;
}
.section-head p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 16.5px;
}

/* Process */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.process-step {
  background: var(--bg);
  padding: 30px 24px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.process-step .num {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-faint);
}
.process-step h3 { font-size: 17px; margin-top: 24px; }
.process-step p { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.price-card {
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(12,12,12,.1); }
.price-card.feat {
  background: var(--ink);
  color: var(--white);
}
.price-card .tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.price-card.feat .tag { color: #a9a9a4; }
.price-card .amount {
  font-size: 40px;
  font-weight: 800;
  margin-top: 14px;
  letter-spacing: -.02em;
}
.price-card .amount sup { font-size: 16px; font-weight: 600; margin-left: 3px; }
.price-card ul { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-card li {
  font-size: 13.5px;
  padding-left: 18px;
  position: relative;
  color: var(--ink-soft);
}
.price-card.feat li { color: #d6d5d2; }
.price-card li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ink-faint);
}
.price-card.feat li::before { color: #7a7a76; }
.price-card .btn { margin-top: 24px; justify-content: center; }
.pricing-note {
  margin-top: 30px;
  font-size: 13.5px;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  padding-top: 20px;
  line-height: 1.7;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.demo-card {
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}
.demo-frame-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-bottom: 1.5px solid var(--line-strong);
  background: var(--bg-alt);
}
.demo-frame-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 250%;
  height: 250%;
  transform: scale(.4);
  transform-origin: top left;
  border: 0;
  pointer-events: none;
}
.demo-card .info {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.demo-card .info h3 { font-size: 16.5px; }
.demo-card .info p { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

/* Why us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.why-item .n {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}
.why-item h4 { font-size: 15px; margin-top: 14px; }
.why-item p { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; }

/* FAQ */
.faq { max-width: 800px; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  transition: transform .25s;
  margin-left: 20px;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 14px; color: var(--ink-soft); font-size: 14.5px; max-width: 62ch; }

/* CTA band */
.cta-band {
  padding: 90px 0;
  background: var(--ink);
  color: var(--white);
  text-align: center;
}
.cta-band h2 { font-size: clamp(26px, 3.6vw, 42px); }
.cta-band p { margin-top: 16px; color: #c9c9c6; font-size: 16px; }
.cta-band .cta-row { margin-top: 30px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cta-band .btn-primary { background: var(--white); color: var(--ink); border-color: var(--white); }
.cta-band .btn-primary:hover { background: #e7e7e4; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.4); color: var(--white); }
.cta-band .btn-ghost:hover { background: var(--white); color: var(--ink); }

/* Footer */
footer.site { padding: 56px 0 40px; border-bottom: none; }
footer.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
}
.footer-col p, .footer-col a { font-size: 13.5px; color: var(--ink-soft); }
.footer-col h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); margin-bottom: 12px; }
.footer-col a { display: block; margin-top: 8px; transition: color .2s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding: 20px 28px 0;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Reveal animation */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  nav.main { display: none; }
  .process { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  section { padding: 64px 0; }
  .mock { box-shadow: 8px 8px 0 var(--ink); }
}

/* Contact modal */
.contact-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  visibility: hidden; opacity: 0;
  transition: opacity .3s var(--ease), visibility 0s linear .3s;
}
.contact-modal.open {
  visibility: visible; opacity: 1;
  transition: opacity .3s var(--ease);
}
.contact-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(12,12,12,.5);
  backdrop-filter: blur(4px);
}
.contact-modal-card {
  position: relative;
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: 14px 14px 0 var(--ink);
  padding: 38px 36px 34px;
  width: 100%; max-width: 480px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  transform: translateY(16px) scale(.97);
  transition: transform .35s var(--ease);
}
.contact-modal.open .contact-modal-card { transform: translateY(0) scale(1); }
.contact-modal-card h3 { font-size: 24px; margin-top: 12px; }
.contact-modal-x {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; cursor: pointer;
  font-size: 30px; line-height: 1; font-weight: 400;
  color: var(--ink-faint); padding: 6px;
  transition: color .2s, transform .2s;
}
.contact-modal-x:hover { color: var(--ink); transform: rotate(90deg); }
.contact-modal-rows { margin-top: 24px; display: flex; flex-direction: column; }
.contact-modal-row {
  display: flex; flex-direction: column; gap: 3px;
  padding: 15px 14px;
  border-top: 1px solid var(--line);
  transition: background .2s, transform .2s;
}
.contact-modal-row:last-child { border-bottom: 1px solid var(--line); }
.contact-modal-row:hover { background: var(--white); transform: translateX(4px); }
.contact-modal-row .cm-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint);
}
.contact-modal-row .cm-value { font-size: 17px; font-weight: 800; }
body.modal-open { overflow: hidden; }

.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
#geo, #facts { scroll-margin-top: 120px; }
.answer h3 { font-size: 18px; margin-top: 28px; }
.answer h3:first-child { margin-top: 0; }
.answer p { margin-top: 10px; color: var(--ink-soft); font-size: 16px; max-width: 72ch; }
.facts {
  margin-top: 36px;
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  border-top: 1px solid var(--line);
}
.facts dt, .facts dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { font-weight: 700; padding-right: 18px; }
.facts dd { color: var(--ink-soft); }
.facts a { border-bottom: 1px solid var(--line); }
.offer-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px 24px;
}
.offer-card .num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--ink-faint);
}
.offer-card h3 { font-size: 20px; margin-top: 12px; }
.offer-card p { font-size: 14.5px; color: var(--ink-soft); margin-top: 10px; }
@media (max-width: 900px) {
  .offer-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: none; padding-bottom: 0; }
  .facts dd { padding-top: 4px; }
}

.cta-band .lead-intro { margin-left: auto; margin-right: auto; max-width: 42ch; }
.lead-card {
  margin: 32px auto 0;
  max-width: 480px;
  background: var(--bg);
  color: var(--ink);
  text-align: left;
  padding: 28px 24px 22px;
}
.lead-form { position: relative; }
.lead-form label {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.lead-form input,
.lead-form select,
.lead-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  font: 500 15px/1.4 'Manrope', sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
.lead-form textarea { resize: vertical; min-height: 88px; }
.lead-form .hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
  padding: 0;
  border: 0;
}
button.btn { font-family: inherit; cursor: pointer; }
.lead-form button.btn,
.cta-band .lead-card .btn-primary {
  margin-top: 18px;
  width: 100%;
  justify-content: center;
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.lead-form button[disabled] { opacity: .55; cursor: wait; transform: none; }
.form-note { margin-top: 12px; min-height: 1.2em; font-size: 14px; font-weight: 600; }
.form-note.ok { color: var(--ink); }
.form-note.err { color: #8a1f1f; }
.price-card button.btn { width: 100%; }
@media (max-width: 640px) {
  .contact-modal-card { padding: 28px 18px 22px; }
}
