.brand-mark > span { display: inline; }
.brand-mark { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.04em; color: var(--ink); text-decoration: none; }
.brand-mark__point { color: var(--accent); }

.d-win { background: #fff; color: #1f231d; border-radius: 12px; overflow: hidden; font: 400 14px/1.45 var(--font-text); text-align: left;
  box-shadow: 0 0 0 1px rgb(31 35 29 / .08), 0 24px 60px -28px rgb(31 35 29 / .45); }
.d-win__bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 1px solid rgb(31 35 29 / .08); font-size: 13px; color: #5d6656; white-space: nowrap; }
.d-win__bar b { color: #1f231d; font-weight: 500; }
.d-win__bar .sp { flex: 1; }
.d-win__dots { display: flex; gap: 6px; }
.d-win__dots i { width: 10px; height: 10px; border-radius: 50%; background: #dcdfd6; }
.d-win__body { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 420px; }

.ed-list { border-right: 1px solid rgb(31 35 29 / .08); padding: 10px; display: grid; align-content: start; gap: 2px; }
.ed-list__label { margin: 8px 8px 4px; font-size: 13px; font-weight: 500; color: #5d6656; }
.ed-list__label:first-child { margin-top: 2px; }
.ed-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 1px 8px; padding: 8px; border-radius: 9px; font-size: 13px; }
.ed-row.is-on { background: #eef1e8; }
.ed-row__n { grid-row: 1 / span 2; font: 500 13px/1.45 var(--font-mono); color: #5d6656; font-variant-numeric: tabular-nums; }
.ed-row b { font-weight: 500; color: #1f231d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-row > span:last-child { grid-column: 2; color: #5d6656; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ed-story { display: grid; gap: 10px; align-content: start; padding: 18px 22px; min-width: 0; }
.ed-story p { margin: 0; }
.ed-story__meta { font: 500 13px/1.4 var(--font-mono); color: #5d6656; font-variant-numeric: tabular-nums; }
.ed-story__title { font-size: 17px; line-height: 1.4; font-weight: 500; color: #1f231d; letter-spacing: -0.01em; max-width: 60ch; }
.ed-story__point { position: relative; padding-left: 16px; color: #2c3229; max-width: 64ch; }
.ed-story__point::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: #9aa58d; }
.ed-claim { box-shadow: inset 0 -2px 0 var(--accent); }
.ed-story__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: 4px; padding-top: 10px; border-top: 1px solid rgb(31 35 29 / .08); font-size: 13px; color: #4a5245; }
.ed-story__save { font-weight: 500; color: #1f231d; }

@media (max-width: 1279px) { .ed-story__point--first, .ed-story__meta { display: none; } }
@media (max-width: 1023px) { .ed-list { display: none; } .d-win__body { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 639px) {
  .d-win__bar .sp ~ span { display: none; }
  .ed-story { padding: 14px 16px; gap: 8px; }
  .ed-story__title { font-size: 15px; }
  .d-win__meta { display: none; }
  .ed-story__src { display: none; }
}

.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
.app > .app__pane--open > .ui-doc { width: min(100%, 640px); padding: var(--s-6) 96px var(--s-6) var(--s-6); }
.app .ui-win__row.is-on { background: color-mix(in oklab, var(--u-ink) 5%, transparent); }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
  .app > .app__pane--open > .ui-doc { padding: var(--s-4) 32px var(--s-4) var(--s-4); }
}

.pc-visual > .ui { width: min(100%, 480px); }
@media (min-width: 640px) {
  main > #jak-powstaje[data-moment]:not(.is-live) .pc-visual { aspect-ratio: auto; max-height: 30svh; overflow: hidden; align-items: flex-start; }
}
@media (max-width: 639px) {
  main > #jak-powstaje[data-moment]:not(.is-live) .pc-visual { aspect-ratio: auto; max-height: 240px; overflow: hidden; align-items: flex-start; }
}

.pc-visual .ui-check.is-done .ui-check__label { color: var(--u-ink); }
.pc-visual .ui-check .ui-check__label::after { display: none; }
.pc-visual .ui-check:not(.is-done) .ui-check__label { color: var(--u-muted); }

#formaty .frame--split { min-height: 440px; }
@media (min-width: 640px) and (max-width: 1023px) {
  #formaty .frame--split { min-height: 0; height: 34svh; }
  .formaty__rows { display: none; }
  main > #jak-powstaje[data-moment]:not(.is-live) .pc-visual { max-height: 18svh; }
  #contact .closing__links .grid > .span-6 { grid-column: 1 / -1; }
  #contact .closing__links .footer__col { grid-column: auto / span 6; }
}
@media (max-width: 639px) { #formaty .frame--split { min-height: 0; height: 340px; } .hero--centred .hero__c > .pill { justify-self: stretch; justify-content: center; } }

.close__word { line-height: 1; }
@media (max-width: 639px) { .d-win__sub { display: none; } .formaty__rows { display: none; } }
@media (min-width: 640px) and (max-width: 1023px) {
  main > #jak-powstaje[data-moment]:not(.is-live) .mo-pc__step { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  main > #jak-powstaje[data-moment]:not(.is-live) .pc-visual { padding: var(--s-4); }
}
@media (max-width: 639px) {
  .faq__side, .faq__item[data-phone-cut] { display: none; }
  main > #jak-powstaje[data-moment] { min-height: calc(2 * 100lvh); }
}
@media (min-width: 640px) and (max-width: 1023px) and (min-height: 1100px) { .formaty__rows { display: block; } }
@media (max-width: 639px) {
  .nav:not(.is-open) .nav__actions { display: none; }
  .nav:not(.is-open) .nav__actions + .nav__toggle { margin-left: auto; }
}
