/* Витрина приложений — компоновка карточки Google Play на палитре Control Center. */
body.store { background: var(--cc-void); }
[data-theme="light"] body.store { background: #f6f8fc; }
.store-main { min-height: 100vh; display: flex; flex-direction: column; }

.st-bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 12px max(16px, calc((100% - 1120px) / 2));
  border-bottom: 1px solid var(--cc-line-soft);
  background: color-mix(in srgb, var(--cc-base) 82%, transparent);
  backdrop-filter: blur(10px);
}
.st-bar .brand { display: flex; align-items: center; gap: 10px; color: var(--cc-text-hi); font-weight: 700; font-size: 16px; text-decoration: none; }
.st-bar .brand .mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--cc-accent); color: #fff; font-size: 14px; }
.st-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 28px 16px 56px; flex: 1; }

/* ------------------------------------------------ шапка приложения */
.st-head { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: start; }
.st-title { display: flex; gap: 22px; align-items: flex-start; }
.st-icon {
  width: 112px; height: 112px; border-radius: 24px; flex: none; overflow: hidden;
  background: var(--cc-panel); border: 1px solid var(--cc-line-soft);
  display: grid; place-items: center; font-size: 44px; font-weight: 800; color: var(--cc-accent-hot);
  box-shadow: 0 10px 30px rgb(0 0 0 / .25);
}
.st-icon img { width: 100%; height: 100%; object-fit: cover; }
.st-title h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin: 4px 0 8px; }
.st-dev { font-size: 15px; font-weight: 600; color: var(--cc-accent-hot); }
.st-types { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

.st-facts { display: flex; margin: 26px 0 22px; }
.st-facts > div { padding: 0 22px; border-left: 1px solid var(--cc-line-soft); display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.st-facts > div:first-child { padding-left: 0; border-left: none; align-items: flex-start; text-align: left; }
.st-facts .v { font-size: 15px; font-weight: 700; color: var(--cc-text-hi); white-space: nowrap; }
.st-facts .l { font-size: 12px; color: var(--cc-text-dim); white-space: nowrap; }

.st-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.st-cta .btn.lg { min-width: 220px; }
.st-cta .note { font-size: 12.5px; color: var(--cc-text-dim); }
.st-cta .note b { color: var(--cc-text-hi); }

/* ------------------------------------------------ скриншоты */
.st-shots {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 34px 0 8px; padding-bottom: 12px; scrollbar-width: thin;
}
.st-shots button {
  flex: none; padding: 0; border: 1px solid var(--cc-line-soft); border-radius: 14px; overflow: hidden;
  background: var(--cc-panel); cursor: zoom-in; scroll-snap-align: start;
}
.st-shots img { display: block; height: clamp(260px, 42vw, 440px); width: auto; }

/* ------------------------------------------------ разделы */
.st-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; margin-top: 26px; }
.st-sec { margin-bottom: 34px; }
.st-sec h2 { font-size: 19px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; }
.st-desc { white-space: pre-line; color: var(--cc-text); font-size: 15px; line-height: 1.65; max-width: 68ch; }
.st-meta { font-size: 13px; color: var(--cc-text-dim); margin-top: 10px; }

.st-builds { display: flex; flex-direction: column; gap: 10px; }
.st-build {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--cc-line-soft); background: var(--cc-panel);
}
.st-build.rec { border-color: color-mix(in srgb, var(--cc-accent) 60%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cc-accent) 14%, transparent); }
.st-build .t { font-weight: 700; color: var(--cc-text-hi); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.st-build .h { font-size: 13px; color: var(--cc-text-dim); }
.st-build .z { font-size: 12px; color: var(--cc-text-faint); font-variant-numeric: tabular-nums; }

.st-steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.st-steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; font-size: 14px; }
.st-steps li::before {
  content: counter(s); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cc-inset); border: 1px solid var(--cc-line); color: var(--cc-text-hi); font-weight: 700; font-size: 13px;
}

.st-side { display: flex; flex-direction: column; gap: 16px; }
.st-box { border: 1px solid var(--cc-line-soft); border-radius: 14px; background: var(--cc-panel); padding: 16px 18px; }
.st-box h3 { font-size: 14px; margin-bottom: 10px; }
.st-box .kv .k { font-size: 12.5px; }
.st-box .kv .v { font-size: 13px; }

.st-foot { border-top: 1px solid var(--cc-line-soft); padding: 18px 16px; text-align: center; font-size: 12.5px; color: var(--cc-text-faint); }

/* ------------------------------------------------ список приложений */
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.st-card {
  display: flex; gap: 16px; padding: 18px; border-radius: 16px;
  border: 1px solid var(--cc-line-soft); background: var(--cc-panel); color: inherit;
  transition: border-color var(--fast) var(--out), background var(--fast) var(--out);
}
.st-card:hover { border-color: var(--cc-line-strong); text-decoration: none; }
.st-card .st-icon { width: 72px; height: 72px; border-radius: 18px; font-size: 28px; box-shadow: none; }
.st-card h2 { margin: 0 0 2px; font-size: 17px; }
.st-card p { font-size: 13px; color: var(--cc-text-dim); margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ------------------------------------------------ просмотр скриншота */
.st-lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgb(3 6 16 / .9); padding: 20px; }
.st-lightbox.open { display: flex; }
.st-lightbox img { max-width: 100%; max-height: 92vh; border-radius: 16px; }
.st-lightbox .x { position: absolute; top: 14px; right: 14px; }

@media (max-width: 900px) {
  .st-cols { grid-template-columns: 1fr; gap: 8px; }
  .st-head { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 560px) {
  .st-icon { width: 80px; height: 80px; border-radius: 18px; font-size: 32px; }
  .st-title { gap: 16px; }
  .st-facts > div { padding: 0 12px; }
  .st-cta .btn.lg { width: 100%; }
}
