:root {
  --bg: #ffffff;
  --bg-soft: #f4f4f2;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e8e8e4;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px rgba(26, 26, 26, 0.08);
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
}
.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  font-size: 14px;
  color: var(--muted);
  transition: color .2s;
}
.nav a:hover { color: var(--ink); }
.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 14px;
  transition: transform .15s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.phone-pill {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: 14px;
}

/* Hero */
.hero { padding: 36px 0 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: stretch;
}
.hero-copy { padding-top: 12px; }
.eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  max-width: 11ch;
}
.hero-lead {
  color: var(--muted);
  font-size: 16px;
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 16px;
}
.stat-card strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.stat-card span { font-size: 12px; color: var(--muted); line-height: 1.35; }
.hero-visual { position: relative; min-height: 520px; }
.hero-photo {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.hero-float {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Sections */
.section { padding: 72px 0; }
.section-soft {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 56px;
  margin: 0 20px 72px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 36px;
}
.section-head h2 {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 14ch;
}
.section-head p {
  color: var(--muted);
  max-width: 42ch;
  font-size: 15px;
}

/* Technology */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.tech-diagram {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--line);
  min-height: 420px;
  display: grid;
  place-items: center;
}
.tech-diagram img { width: 100%; max-height: 360px; object-fit: contain; opacity: .9; }
.feature-stack { display: grid; gap: 14px; }
.feature-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 16px;
}
.feature-card img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 14px;
}
.feature-card h3 { font-size: 16px; margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: rgba(255,255,255,.72); line-height: 1.45; }

/* Catalog */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.catalog-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 320px;
}
.catalog-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform .35s;
}
.catalog-card:hover img { transform: scale(1.04); }
.catalog-overlay {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: rgba(26,26,26,.82);
  color: #fff;
  border-radius: 14px;
  padding: 14px 16px;
}
.catalog-overlay strong { display: block; font-size: 14px; margin-bottom: 4px; }
.catalog-overlay span { font-size: 13px; color: rgba(255,255,255,.75); }
.catalog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  gap: 16px;
}
.pager { display: flex; gap: 8px; }
.pager button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

/* Payment */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.pay-card {
  border-radius: var(--radius-md);
  padding: 24px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
}
.pay-card.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.pay-card h3 { font-size: 18px; margin-bottom: 10px; letter-spacing: -0.02em; }
.pay-card p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.pay-card.dark p { color: rgba(255,255,255,.72); }
.pay-arrow {
  align-self: flex-end;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: grid;
  place-items: center;
  opacity: .5;
}

/* Steps */
.steps { text-align: center; }
.steps h2 {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.03em;
  margin-bottom: 48px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}
.step-num {
  font-size: 72px;
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px #c8c8c4;
  margin-bottom: 16px;
}
.step h3 { font-size: 20px; margin-bottom: 10px; letter-spacing: -0.02em; }
.step p { color: var(--muted); font-size: 14px; max-width: 30ch; }

/* Contact / Footer */
.contact-section {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px;
  margin: 0 20px 40px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: start;
}
.contact-section h2 {
  font-size: clamp(30px, 3vw, 42px);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.contact-section .lead { color: rgba(255,255,255,.72); margin-bottom: 24px; max-width: 42ch; }
.contact-list { display: grid; gap: 12px; margin-bottom: 24px; }
.contact-list a { color: #fff; font-weight: 600; }
.contact-form {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 24px;
  display: grid;
  gap: 12px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.04);
  color: #fff;
  border-radius: 12px;
  padding: 14px 16px;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,.45); }
.contact-form textarea { min-height: 110px; resize: vertical; }
.site-footer {
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: none;
  place-items: center;
  z-index: 100;
  padding: 20px;
}
.modal.open { display: grid; }
.modal-card {
  width: min(480px, 100%);
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px;
}
.modal-card h3 { margin-bottom: 8px; font-size: 22px; }
.modal-card p { color: var(--muted); margin-bottom: 18px; font-size: 14px; }
.modal-card .contact-form { background: var(--bg-soft); border-color: var(--line); }
.modal-card .contact-form input,
.modal-card .contact-form textarea {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.modal-close {
  float: right;
  border: none;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

/* Mobile */
.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}
@media (max-width: 1024px) {
  .hero-grid, .tech-grid, .contact-grid { grid-template-columns: 1fr; }
  .catalog-grid, .payment-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { max-width: none; }
  .hero-visual { min-height: 380px; }
  .hero-photo { min-height: 380px; }
  .phone-pill { display: flex; }
  .header-cta .btn-ghost { display: none; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow);
  }
  .stats { grid-template-columns: 1fr; }
  .catalog-grid, .payment-grid, .steps-grid { grid-template-columns: 1fr; }
  .section-soft, .contact-section { margin: 0 0 48px; padding: 28px 20px; border-radius: 0; }
  .hero-float { position: static; margin-top: 12px; flex-wrap: wrap; }
  .feature-card { grid-template-columns: 72px 1fr; }
  .feature-card img { width: 72px; height: 72px; }
}
