* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  direction: rtl;
  color: #1f2937;
  background: #f3f6fb;
  line-height: 1.7;
}
.module-header {
  background: linear-gradient(135deg, #1e3c72 0%, #6b63d9 100%);
  color: white;
  padding: 34px 24px 54px;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.back-link {
  display: inline-block;
  color: white;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 28px;
}
h1 { margin: 0 0 14px; font-size: 2.5rem; line-height: 1.2; }
.lead { max-width: 850px; font-size: 1.22rem; opacity: .96; margin: 0; }
.tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
  margin-top: -28px;
  position: relative;
  z-index: 2;
}
.tabs a {
  background: white;
  color: #1e3c72;
  text-decoration: none;
  text-align: center;
  padding: 14px 12px;
  border-radius: 9px;
  box-shadow: 0 10px 24px rgba(30, 60, 114, .12);
  font-weight: 700;
  border: 1px solid #dfe7f3;
}
.tabs a.active { background: #6b63d9; color: white; }
section {
  background: white;
  border-radius: 12px;
  padding: 38px;
  margin: 28px auto;
  box-shadow: 0 8px 24px rgba(30, 60, 114, .08);
}
h2 { color: #1e3c72; margin-top: 0; font-size: 1.8rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.card {
  border: 1px solid #dfe7f3;
  border-top: 5px solid #2a5298;
  border-radius: 10px;
  padding: 22px;
  background: #fff;
}
.card h3 { margin-top: 0; color: #1e3c72; }
.flow {
  counter-reset: step;
  display: grid;
  gap: 14px;
}
.step {
  background: #eef7ff;
  border-right: 5px solid #2196f3;
  border-radius: 10px;
  padding: 18px 22px;
}
.highlight {
  background: linear-gradient(135deg, #eef7ff 0%, #f7fbff 100%);
  border-right: 6px solid #6b63d9;
  padding: 26px;
  border-radius: 12px;
}
.cta {
  text-align: center;
  background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
  color: white;
}
.cta h2 { color: white; }
.cta a {
  display: inline-block;
  background: white;
  color: #2e7d32;
  text-decoration: none;
  padding: 14px 34px;
  border-radius: 999px;
  font-weight: 800;
}
.screenshot-placeholder {
  border: 2px dashed #c7d2fe;
  border-radius: 12px;
  padding: 34px;
  text-align: center;
  color: #64748b;
  background: #f8fbff;
}
@media (max-width: 760px) {
  h1 { font-size: 2rem; }
  section { padding: 26px; }
  .module-header { padding-bottom: 44px; }
}
.section-intro {
  max-width: 850px;
  margin: 0 0 24px;
  color: #4b5563;
  font-size: 1.08rem;
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.preview-card {
  position: relative;
  min-height: 210px;
  padding: 24px;
  border: 1px solid #dfe7f3;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #f6fbff 100%);
  overflow: hidden;
}
.preview-card::after {
  content: "";
  position: absolute;
  inset-inline-start: -38px;
  bottom: -46px;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: rgba(33, 150, 243, .08);
}
.preview-card span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #eef7ff;
  color: #0f70d7;
  font-weight: 900;
  margin-bottom: 14px;
}
.preview-card h3 {
  margin: 0 0 10px;
  color: #1e3c72;
}
.preview-card p {
  margin: 0;
  color: #52627a;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.screenshot-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid #dfe7f3;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(30, 60, 114, .12);
}
.screenshot-card.wide {
  grid-column: 1 / -1;
}
.screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
}
.screenshot-card figcaption {
  padding: 14px 18px;
  color: #41516a;
  font-weight: 700;
  background: #f8fbff;
  border-top: 1px solid #e6eef7;
}
@media (max-width: 860px) {
  .screenshot-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile click safety */
.tabs,
.tabs a,
.back-link,
.cta a {
  position: relative;
  z-index: 5;
  pointer-events: auto;
}
@media (max-width: 760px) {
  .tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: -22px;
  }
  .tabs a,
  .back-link,
  .cta a {
    min-height: 44px;
  }
}
