/* OK Инкубатор проектов: homepage section + /incubator/ pages. Built on the v2.css tokens. */

.incubator { background: var(--paper); padding-block: var(--section-pad); }
.incubator-head { row-gap: 24px; margin-bottom: clamp(40px, 5vw, 72px); }
.incubator-head .display { grid-column: 1 / 8; }
.incubator-head > div { grid-column: 8 / 13; display: grid; gap: 24px; align-content: end; justify-items: start; }

/* Cards: every logo sits in the same square, whatever its proportions. */
.inc-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--col-gap); }
.inc-card {
  display: grid; grid-template-columns: 112px 1fr; gap: 20px; align-items: start; height: 100%;
  padding: 20px; background: var(--sheet); color: var(--ink); text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.inc-card:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-2px); }
.inc-logo {
  width: 112px; height: 112px; display: grid; place-items: center; padding: 12px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line);
}
.inc-logo img { width: 100%; height: 100%; object-fit: contain; }
.inc-card-body { display: grid; gap: 8px; }
.inc-card-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.inc-card-text { color: var(--mute); font-size: 0.95rem; white-space: pre-line; }
.inc-card-more { font-weight: 600; font-size: 0.9rem; margin-top: 4px; }
.inc-msg { color: var(--mute); }
@media (max-width: 760px) {
  .incubator-head .display, .incubator-head > div { grid-column: 1 / -1; }
  .inc-card { grid-template-columns: 80px 1fr; gap: 14px; padding: 16px; }
  .inc-logo { width: 80px; height: 80px; padding: 8px; }
}

/* Call to action at the end of «Больше, чем коворкинг»: a lime banner pointing to the incubator. */
.inc-cta {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 48px; align-items: end;
  padding: clamp(28px, 4vw, 64px); background: var(--lime); color: var(--ink);
}
.inc-cta-eyebrow {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.inc-cta-eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--ink); }
.inc-cta-title { max-width: 40ch; font-size: clamp(1.05rem, 1.3vw, 1.25rem); line-height: 1.4; color: var(--lime-ink); }
.inc-cta-title strong {
  display: block; margin-bottom: 12px; color: var(--ink);
  font-size: clamp(1.9rem, 3.4vw, 3.4rem); line-height: 1; letter-spacing: -0.035em; font-weight: 700;
}
.inc-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 760px) {
  .inc-cta { grid-template-columns: 1fr; }
  .inc-cta-actions { justify-content: flex-start; }
  .inc-cta-actions .btn { flex: 1 1 100%; }
}

/* /incubator/ and /incubator/<slug>/ */
.inc-top { position: sticky; top: 0; z-index: 10; background: var(--lime); box-shadow: inset 0 -1px 0 rgba(20, 21, 18, 0.22); }
.inc-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.inc-top .brand { display: block; color: var(--ink); }
.inc-top .brand svg { width: 132px; height: auto; display: block; }
.inc-top nav { display: flex; align-items: center; gap: 18px; font-weight: 600; font-size: 0.9rem; }
.inc-top nav a { text-decoration: none; }
.inc-top nav a:hover { text-decoration: underline; }
.inc-lang { display: flex; }
.inc-lang button { min-width: 44px; min-height: 36px; border: 0; background: transparent; font-weight: 600; font-size: 0.85rem; box-shadow: inset 0 0 0 1.5px var(--ink); }
.inc-lang button[aria-pressed="true"] { background: var(--ink); color: var(--lime); }
.inc-main { padding-block: clamp(48px, 7vw, 112px) var(--section-pad); }
.inc-main .wrap > * { grid-column: 1 / -1; }
.inc-intro { display: grid; gap: 20px; max-width: 60ch; margin-bottom: clamp(48px, 6vw, 88px); }
.inc-resources { display: grid; gap: 10px; }
.inc-resources li { padding-left: 28px; position: relative; }
.inc-resources li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 14px; background: var(--lime); box-shadow: inset 0 0 0 1.5px var(--ink); }
.inc-h2 { font-size: clamp(1.5rem, 2.2vw, 2.2rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 24px; }
.inc-project { display: grid; gap: 24px; justify-items: start; max-width: 70ch; }
.inc-project .inc-logo { width: 160px; height: 160px; padding: 16px; }
.inc-project-text { max-width: none; white-space: pre-line; }
.inc-foot { padding-block: 24px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--mute); }
.inc-foot .wrap > * { grid-column: 1 / -1; }
@media (max-width: 760px) { .inc-top nav a[data-inc-t="home"] { display: none; } }

/* /incubator/<slug>/ that mirrors a project's own site: thin OFIS bar + the live site below. */
.inc-mirror { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
.inc-mirror .inc-top { position: static; flex: none; }
.inc-frame { flex: 1; width: 100%; border: 0; display: block; background: #0a0b14; }
