/* Главная connect.rogapp.org (0.24): снимки программы, шаги, платформы. Подключается после family.css. */
html,
body {
  overflow-x: clip;
}

/* ---------- первый экран ---------- */
.hero2 {
  padding: 56px 0 40px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: 48px;
  align-items: center;
}
.hero2 h1 {
  margin-bottom: 18px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(245 200 75 / 0.1);
  border: 1px solid rgb(245 200 75 / 0.25);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}
.eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3fcf8e;
  box-shadow: 0 0 0 4px rgb(63 207 142 / 0.18);
}
.stage {
  position: relative;
}
.stage::before {
  content: '';
  position: absolute;
  inset: -12% -8% -8% -8%;
  background: radial-gradient(closest-side, rgb(245 200 75 / 0.16), transparent 70%);
  pointer-events: none;
}
.shot {
  position: relative;
  display: block;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #34343c;
  background: #0d0e10;
  box-shadow: 0 30px 80px -24px rgb(0 0 0 / 0.75), 0 0 0 1px rgb(255 255 255 / 0.02) inset;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
}
button.shot {
  padding: 0;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
}
button.shot:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
button.shot.shot--float {
  position: absolute;
  width: 31%;
  right: -4%;
  bottom: -14%;
  border-radius: 12px;
  box-shadow: 0 24px 60px -12px rgb(0 0 0 / 0.85);
}

/* ---------- три шага ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 72px 0 24px;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.step b {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  margin-bottom: 12px;
}
.step h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- витрина ---------- */
.section-head {
  padding: 64px 0 8px;
  max-width: 640px;
}
.section-head h2,
.platforms h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 10px;
}
.section-head p {
  color: var(--muted);
  margin: 0;
}
.show {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
  padding: 44px 0;
}
.show--flip {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
}
.show--flip .show__media {
  order: 2;
}
.show--narrow {
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
}
.show__text h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 12px;
}
.show__text > p {
  color: var(--muted);
  margin: 0 0 16px;
}
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.ticks li {
  position: relative;
  padding-left: 28px;
  color: #d6d3cb;
  font-size: 15px;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgb(63 207 142 / 0.14)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233fcf8e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}
.pair {
  position: relative;
  padding-bottom: 12%;
}
.pair button.shot:last-child {
  position: absolute;
  width: 62%;
  right: -3%;
  bottom: 0;
}
.cap {
  margin-top: 10px;
  color: var(--faint);
  font-size: 13px;
}

/* ---------- платформы ---------- */
.platforms {
  padding: 64px 0 24px;
}
.platforms > p {
  color: var(--muted);
  margin: 0 0 24px;
}
.plats {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 14px;
}
.plat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
}
.plat--main {
  border-color: rgb(245 200 75 / 0.45);
  background: linear-gradient(180deg, rgb(245 200 75 / 0.07), transparent 60%), var(--card);
}
.plat h3 {
  margin: 0;
  font-size: 18px;
}
.plat p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}
.plat .btn {
  min-height: 44px;
  font-size: 15px;
  padding: 0 16px;
}
.plat small {
  color: var(--faint);
  font-size: 12px;
}
.plat small a {
  color: var(--muted);
}

/* ---------- просмотр снимка ---------- */
dialog.zoom {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(96vw, 1600px);
  max-height: 94vh;
}
dialog.zoom::backdrop {
  background: rgb(8 8 10 / 0.86);
}
dialog.zoom img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  border-radius: 12px;
  border: 1px solid #34343c;
}
dialog.zoom p {
  color: #d6d3cb;
  text-align: center;
  margin: 10px 0 0;
  font-size: 14px;
}
dialog.zoom form {
  position: absolute;
  top: 8px;
  right: 8px;
}
dialog.zoom form button {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #3b3b44;
  background: rgb(20 20 23 / 0.9);
  color: #f1efe9;
  font-size: 20px;
  cursor: pointer;
}

@media (max-width: 960px) {
  .hero2,
  .show,
  .show--flip,
  .show--narrow {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .show--flip .show__media {
    order: 0;
  }
  .show--narrow .show__media {
    max-width: 360px;
  }
  .plats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero2 {
    padding-top: 32px;
  }
  button.shot.shot--float {
    width: 34%;
    right: 2%;
    bottom: -10%;
  }
}
.topnav a {
  white-space: nowrap;
}
@media (max-width: 600px) {
  .topnav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
  }
  .topnav a {
    margin: 0;
  }
  .topnav__opt {
    display: none;
  }
  .steps,
  .plats {
    grid-template-columns: 1fr;
  }
  button.shot.shot--float {
    display: none;
  }
  .pair {
    padding-bottom: 0;
  }
  .pair button.shot:last-child {
    position: relative;
    width: 100%;
    right: 0;
    margin-top: 14px;
  }
  .show {
    padding: 28px 0;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .shot {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  button.shot:hover {
    transform: translateY(-3px);
  }
}

/* ---------- снимки в документации ---------- */
.doc figure {
  margin: 14px 0 18px;
}
.doc figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.doc figcaption {
  color: var(--faint);
  font-size: 13px;
  margin-top: 6px;
}
